Forum Discussion

kandulmadhu's avatar
9 years ago

REST API for checking if a post has hyperlink inserted

Hi all,

 

There are REST APIs to check if a post has an attachment/image/video inserted in body.

But, I need a REST API to check if a post has an hyperlink inserted.

 

Thanks in advance,

Madhu

2 Replies

  • kandulmadhu,

    did you find how to check if a post has a hyperlink?

    I've coded a custom component, got everything except of hyperlinks.

    I see that in build-in components such as a specific board articles, 

    hyperlink icons are visible.

     

    Any suggestions from Lithium experts?

  • irach15 - In case you don't find any direct API for this, you can simply find the link in the message post. Scan the post using contains and see if this has href tags in it. You will need to run multiple tests to make sure it is working correctly.

    I hope this helps.