I'm trying to parse some string and it has some http links embedded in it. I'd like to dynamically create anchor tags within this string using jquery then display them on the front end so the user can click them.
Is there a way to do this?
Thanks!
I'm trying to parse some string and it has some http links embedded in it. I'd like to dynamically create anchor tags within this string using jquery then display them on the front end so the user can click them.
Is there a way to do this?
Thanks!
You can do it like this:
working example
@cfarm , you can grab the urls and construct html of your own.
parse the string and start making the urls and keep a place holder in your Html , use
http://api.jquery.com/html/
or
http://api.jquery.com/append/