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

Комментарии • 11

  • @OpenJavaScript
    @OpenJavaScript  Год назад

    Thanks for watching!
    👉 Video based on this blog post: openjavascript.info/2021/09/08/should-we-be-using-innerhtml/

  • @gavincampbell4898
    @gavincampbell4898 Год назад +2

    get your mic away from your keyboard, my subwoofer is going to explode

    • @OpenJavaScript
      @OpenJavaScript  Год назад

      Thanks for the feedback.
      Sorry about the issue, will keep the keyboard further away from the mic for the next one!

  • @DrewCarrillo
    @DrewCarrillo Год назад

    Great video. Keep them coming...

  • @kevin_neugebauer
    @kevin_neugebauer Год назад +1

    thanks - great tutorial

    • @OpenJavaScript
      @OpenJavaScript  Год назад

      You're welcome, glad you liked it and thanks for reaching out :)

  • @عوالممدهشة-ت7و
    @عوالممدهشة-ت7و Год назад

    Keep up we want js security tutorial

    • @OpenJavaScript
      @OpenJavaScript  Год назад +1

      Thanks for watching, will keep a JS security tutorial in mind :)

  • @timothyreynolds1822
    @timothyreynolds1822 Год назад

    😑 p̴r̴o̴m̴o̴s̴m̴