security.output-encoding

Avoid unsafe DOM HTML insertion sinks

`outerHTML`, `document.write*`, and `insertAdjacentHTML` should only receive fixed or explicitly sanitized HTML.

#Metadata

#Why it matters

HTML-capable DOM insertion sinks can execute attacker-controlled markup unless the HTML is fixed or strongly sanitized first.

#Remediation

Insert text with safe DOM APIs, or pass only fixed or explicitly sanitized HTML to the sink.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.dangerous-insert-html.rule.yaml.