Use a regex to detect `javascript:` URLs. This is more efficient in terms of code size, and more supported (e.g. the URL constructor API not avaible in legacy browsers). #350
Use a regex to detect javascript: URLs. This is more efficient in terms of code size, and more supported (e.g. the URL constructor API not avaible in legacy browsers).
Use a regex to detect
javascript:
URLs. This is more efficient in terms of code size, and more supported (e.g. the URL constructor API not avaible in legacy browsers).