Which characters must be escaped in HTML?
At minimum the ampersand, less-than, greater-than, double quote and single quote. The ampersand must be handled first: if < were replaced with < before ampersands were escaped, the new ampersand would be escaped again. This tool escapes ampersands first, so the output decodes correctly.
What is the difference between ' and '?
' is the numeric reference for the apostrophe and works in every HTML version. ' is a named entity defined in HTML5 and XML, but some older browsers and email clients do not recognise it. This tool uses ' for maximum compatibility.
Why does look like a normal space but behave differently?
stands for a no-break space, U+00A0. It looks like a normal space but is a different character, so search, comparison and identifier code may treat it differently. Replace it with a regular space when the text is used as data rather than display.
Are hexadecimal references case-sensitive?
The x in a hexadecimal reference is case-insensitive, so € and € name the same character. Named entities are case-sensitive in the HTML standard. This tool knows only a common subset, and any name it does not list is left unchanged.
Does unescaping change text that is not an entity?
No. Only sequences that start with an ampersand, contain a name or number, and end with a semicolon are replaced. An ampersand followed by a space or an unknown name stays exactly as typed.
Is my text uploaded?
No. Escaping and unescaping run with JavaScript in your browser, so markup pasted here stays on your machine.