Is it safe to use innerHTML in JavaScript?

Pubblicato il: 03 maggio 2022
sul canale di: Code With Bubb
6,404
154

In today's JavaScript tutorial we're going to look at the innerHTML property that's available in JavaScript to dynamically update elements on the page with a string including HTML content.

Is it safe to use innerHTML in JavaScript? What could be the effects of assigning a string that has HTML content inside it?

We'll see in the video that innerHTML needs to be used with some caution although there are a few safeguards in place to ensure malicious users are kept at bay.

#javascript #webdevelopment Channel Handle @codebubb


In questa pagina del sito puoi guardare il video online Is it safe to use innerHTML in JavaScript? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code With Bubb 03 maggio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 6,404 volte e gli è piaciuto 154 spettatori. Buona visione!