Benjamin Schmid-Lanz
Posts: 0
Joined: Sun Mar 29, 2015 4:20 pm

Check text for Links an Display them as links?

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Check text for Links an Display them as links?

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...

Benjamin Schmid-Lanz
Posts: 0
Joined: Sun Mar 29, 2015 4:20 pm

Check text for Links an Display them as links?

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

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

Return to “Issues”