Convert between raw text and HTML entity-escaped text. Choose named entities (& < > " '), numeric entities (&#NNN;), or decode both at once. Optional smart-quote normalisation converts curly quotes and dashes to ASCII before encoding.
- Which named entities are supported?
- The core HTML-safe set (&, <, >, ", '), whitespace ( ), typographic symbols (—, –, …), and common currency/symbol entities (©, ®, ™, £, €, ¥, ¢).
- When should I use numeric entities?
- Use numeric entities (&#NNN;) for maximum compatibility — they work in any HTML/XML parser, while some named entities (like ') aren't valid in all HTML versions. Numeric mode also encodes every non-ASCII character so output stays 7-bit safe.
- What does smart-quote normalisation do?
- It rewrites curly quotes (‘ ’ “ ”), en/em dashes (– —), and ellipsis (…) to plain ASCII (' " - -- ...) before encoding. Useful when copying text from Word or a CMS that silently replaces punctuation.