htmlcharacter-entities

Is it necessary to use character entities for quotes in HTML?


I understand the need for &, <, etc. But is " necessary? I suppose it could be useful inside tag attributes, but inside the text, outside any tag, is it necessary?


Solution

  • No, it is not necessary when used in normal html content.

    for escaping quotes in tag attributes you can use " or either \" or \' depending on which you want to escape.