Encode text to HTML entities or decode HTML entities back to text.
Escape reserved HTML characters (&, <, >, ", ') so text can be safely embedded inside HTML markup, or decode an already-escaped string back to readable text.
Decoding uses the browser's own HTML parser, so every standard named entity (like or ©) is handled correctly, not just the five basic ones.
By default: & < > " ' — the characters that are structurally meaningful in HTML. An option lets you also convert every non-ASCII character to a numeric entity.