eslint-plugin-sdl/docs/rules/no-inner-html.md

891 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.