mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
In modern browsers, the 'javascript:' URL scheme is the only scheme that can execute JavaScript when passed in a navigation URL context (e.g. `a.href` value). Validate URL shemes to only contain characters allowed in the URL specification ([a-zA-Z-+.]), and that are not javascript (case insensitive). This is not a breaking change. The URL sanitization is loosen. PR Close #49659 |
||
|---|---|---|
| .. | ||
| html_sanitizer_spec.ts | ||
| sanitization_spec.ts | ||
| url_sanitizer_spec.ts | ||