Is it safe to use innerHTML? | JavaScript Tutorial

Published: 17 November 2022
on channel: OpenJavaScript
866
47

👉 Source code: https://openjavascript.info/2021/09/0...
⚡ Looking for high-performance, afforable web hosting? We use HostWithLove: https://bit.ly/3V2RM9Q ❤️

This tutorial shows you when it is safe to use the innerHTML method and when it presents a security risk. It also looks at two alternatives to using innerHTML: using the document.createElement() method with textContent/innerText or passing code through a HTML sanitizer.
#innerHTML #security #javascript #frontend #tutorial #javascript_tutorial #webdevelopment

🔔 Subscribe for more tutorials just like this:    / @openjavascript  

⚡ NEW: Web development courses from Meta Inc. ⚡
Front-End Developer Professional Certificate: https://imp.i384100.net/b3dMek
Back-End Developer Professional Certificate: https://imp.i384100.net/gbYorg
iOS Developer Professional Certificate: https://imp.i384100.net/Jr7qj2
Meta Android Developer Professional Certificate: https://imp.i384100.net/oeYnGo
Meta Database Engineer Professional Certificate: https://imp.i384100.net/BX7KGB

Website: https://openjavascript.info
Twitter:   / openjavascript  


On this page of the site you can watch the video online Is it safe to use innerHTML? | JavaScript Tutorial with a duration of hours minute second in good quality, which was uploaded by the user OpenJavaScript 17 November 2022, share the link with friends and acquaintances, this video has already been watched 866 times on youtube and it was liked by 47 viewers. Enjoy your viewing!