Page 1 of 1

Check text for Links an Display them as links?

Posted: Mon Mar 30, 2015 12:57 pm
by Benjamin Schmid-Lanz

Hi!

I am having the problem, that i am getting content throught a json api-call, but the links arent shown as links, but plain text.

Is there any possibility to change that?


Check text for Links an Display them as links?

Posted: Mon Mar 30, 2015 2:17 pm
by Evgene Karachevtsev

Hello Benjamin,

Unfortunately 3rd party rest services are outside the scope of our support, but you may try to change text to links with custom JS, for example like this:
http://stackoverflow.com/questions/37...
http://stackoverflow.com/questions/51...


Check text for Links an Display them as links?

Posted: Mon Mar 30, 2015 2:37 pm
by Benjamin Schmid-Lanz

https://github.com/gregjacobs/Autolin... did the job pretty nicely!

code on pageshow
var myTextEl = document.etElementsByTagName("p");
myTextEl.innerHTML = Autolinker.link( myTextEl.innerHTML );