• schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    1 month ago

    Is this valid HTML? My understanding is that that attribute value needs to be escaped, i.e. <value of \"myattribute\">.

    • moriquende@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      The quote must not be escaped when you start with a single quote. The rest doesn’t. This is valid and tested: <img alt='my "<img>"'>