Which characters must be escaped?
In element content you must escape < and &. Inside attribute values also escape the quote character you used. Escaping >, " and ' everywhere is a safe habit and prevents most HTML injection bugs.
| Char | Named | Decimal | Hex |
|---|---|---|---|
| < | < | < | < |
| > | > | > | > |
| & | & | & | & |
| " | " | " | " |
| ' | ' | ' | ' |
| non-breaking space | |   |   |
| © | © | © | © |
| € | € | € | € |
See the ASCII table for the numeric entity of every basic character.