linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

Extra ; when whitespace after html-coded char (linkify-html)

Open gabooo opened this issue 3 years ago • 0 comments

I have noticed that if the string to be linkified contains html encoded chars the removal of the coded sequence acts strangely. Here is an example:

Original string: "https://www.google.com""http://www.cloudera.com" Output: "https://www.google.com""http://www.cloudera.com";

Notice the ; at the end. That should not be there. If i add a space between the 2 ", there is a new ; before the space.

Original string: "https://www.google.com" "http://www.cloudera.com" Output: "https://www.google.com"; "http://www.cloudera.com";

To me it seems like that if there is a whitespace after an HTML encoded char sequence, the removal of the char code (like ") leaves the last char there.

gabooo avatar Jul 11 '22 18:07 gabooo