deno_lint logodeno_lint

All rules/no-danger

no-danger

Recommended

Prevent the use of dangerouslySetInnerHTML which can lead to XSS

vulnerabilities if used incorrectly.

Invalid:

const hello = <div dangerouslySetInnerHTML={{ __html: "Hello World!" }} />;

Valid:

const hello = <div>Hello World!</div>;