linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

Linkify not working with greater and lower characters

Open cristiann190 opened this issue 4 years ago • 2 comments

The linkifyHtml does not work fine with some special characters.

We get a text from our database and using linkifyHtml we are getting problems with some characters like - or ><. <http://nu.nl> -http://nu.nl- ,http://nu.nl, .http://nu.nl. {http://nu.nl} [http://nu.nl] 'http://nu.nl' "http://nu.nl" This is the original list, the first 2 doesn't work. Then in our case, we have stored in database: We store the values sanitized.

&lt;http://nu.nl&gt;

This one it's also failing.

image

cristiann190 avatar Jul 15 '21 09:07 cristiann190

Hi @cristiann190 , please use linkify-string instead of linkify-html for this case

nfrasser avatar Sep 17 '21 00:09 nfrasser

Hi @nfrasser I tried with string option, but I still get weird values, and also for a link pasted in the box the result now its not good. So not a good option. image

cristiann190 avatar Sep 17 '21 08:09 cristiann190

Fixes as best as possible in the latest Linkify v4

nfrasser avatar Sep 19 '22 01:09 nfrasser