Skip to main content

What it flags

DomSanitizer.bypassSecurityTrust* is called on a dynamic value, which turns off Angular’s built-in sanitization. A bracket call with a literal method name, such as this.sanitizer['bypassSecurityTrustHtml'](value), is read like a dot call. A computed method name is not reported.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: