Don’t use `innerHTML`

don’t-use-`innerhtml`

innertHTML is a good function. But if you wrote a code in a wrong way, or if you misused this code, it can be used to infiltrate your web app.

In this article I explained why it can be bad if misused with code samples. If you like to read the article

The alternative with this one is using setHTML() function. The downside with this one is that, its still in its experimental state so other browsers might not support this function.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
demystifying-docker-containers:-unleashing-the-magic-of-self-contained-application-packages

Demystifying Docker Containers: Unleashing the Magic of Self-Contained Application Packages

Next Post
vercel-forms

Vercel forms

Related Posts