no-inner-html.md 890 B

Do not write to DOM directly using innerHTML/outerHTML property (no-inner-html)

Assignments to innerHTML/outerHTML properties or calls to insertAdjacentHTML method manipulate DOM directly without any sanitization and should be avoided. Use document.createElement() or similar methods instead.

Related Rules