You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
URL followed by now works as expected in linkify-html (#184)
* Add AMPERSAND character as first-class token
Rather than it belonging to the SYMS text text token
* Update simple-html-tokenizer to latest version
This is the actual fix for the bug. It includes an update to ensure
is always parsed into its non-encoded form
* Add tests for following URL
'Ignore tags like <script>var a = {}; a.ca = "Hello";</script> and <style>b.com {color: blue;}</style>',
56
56
'Ignore tags like <script>var a = {}; <a href="http://a.ca" class="linkified" target="_blank">a.ca</a> = "Hello";</script> and <style><a href="http://b.com" class="linkified" target="_blank">b.com</a> {color: blue;}</style>',
57
57
'Ignore tags like <script>var a = {}; a.ca = "Hello";</script> and <style>b.com {color: blue;}</style>'
58
+
],[
59
+
'6. Link followed by nbsp escape sequence https://github.com ',
60
+
'6. Link followed by nbsp escape sequence <a href="https://github.com" class="linkified" target="_blank">https://github.com</a>\u00a0',
61
+
'6. Link followed by nbsp escape sequence <span href="https://github.com" class="my-linkify-class" target="_parent" rel="nofollow" onclick="console.log(\'Hello World!\')">https://github.com</span>\u00a0'
0 commit comments