linkifyjs
linkifyjs copied to clipboard
Extra ; when whitespace after html-coded char (linkify-html)
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.