google / safevalues

Apache License 2.0
110 stars 13 forks source link

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

Closed copybara-service[bot] closed 8 months ago

copybara-service[bot] commented 8 months ago

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).