How HTML entity escaping works
The five reserved characters & < > " ' are escaped to named entities; "All non-ASCII" mode also converts every character above U+007F to a numeric &#N; reference.
Escape HTML-sensitive characters into named and numeric character references. Runs entirely in your browser — input is never uploaded.
The five reserved characters & < > " ' are escaped to named entities; "All non-ASCII" mode also converts every character above U+007F to a numeric &#N; reference.
Decoding accepts named entities (&), decimal references ('), and hexadecimal references (') interchangeably.
The apostrophe encodes as ' rather than ', since ' was never valid in HTML4.