Is it safe to use innerHTML? | JavaScript Tutorial
HTML-код
- Опубликовано: 2 окт 2024
- 👉 Source code: openjavascript...
⚡ Looking for high-performance, afforable web hosting? We use HostWithLove: 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: imp.i384100.ne...
Back-End Developer Professional Certificate: imp.i384100.ne...
iOS Developer Professional Certificate: imp.i384100.ne...
Meta Android Developer Professional Certificate: imp.i384100.ne...
Meta Database Engineer Professional Certificate: imp.i384100.ne...
Website: openjavascript...
Twitter: / openjavascript
Thanks for watching!
👉 Video based on this blog post: openjavascript.info/2021/09/08/should-we-be-using-innerhtml/
get your mic away from your keyboard, my subwoofer is going to explode
Thanks for the feedback.
Sorry about the issue, will keep the keyboard further away from the mic for the next one!
Great video. Keep them coming...
Thanks for watching, more in the pipeline!
thanks - great tutorial
You're welcome, glad you liked it and thanks for reaching out :)
Keep up we want js security tutorial
Thanks for watching, will keep a JS security tutorial in mind :)
😑 p̴r̴o̴m̴o̴s̴m̴
?