Web Security · Client-side
innerHTML
A DOM property that parses assigned text as HTML. Untrusted values can introduce executable attributes and other unsafe markup. Use textContent for plain text, or a maintained sanitizer when HTML is necessary.
Web Security · Client-side
A DOM property that parses assigned text as HTML. Untrusted values can introduce executable attributes and other unsafe markup. Use textContent for plain text, or a maintained sanitizer when HTML is necessary.