security.output-encoding

Avoid unsafe `innerHTML` assignment

`innerHTML` assignments should only use fixed or explicitly sanitized HTML.

#Metadata

#Why it matters

Direct HTML injection can allow untrusted or weakly reviewed content to execute in the browser.

#Remediation

Prefer text-only rendering APIs or assign only fixed or explicitly sanitized HTML.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.no-innerhtml-assignment.rule.yaml.