A CMS that ate your ampersands, or a paste from Word full of smart quotes. Encoding is not a security control.
A title AT&T that became AT in a feed, or a snippet you need as <div>. This page maps characters to entities. It will not make a blob of user HTML safe.
URLs: URL encoder. Seeing the page: Markdown preview. Escaping for a JSON string is still JSON’s job on the formatter.
Markup, not query strings
Putting < into an HTML body needs entities. Putting a search string into a URL needs percent-encoding — that is the URL encoder. This is not an XSS scanner or a CSP setup. Attribute vs text-node rules still differ; glance at the result.
How to use it
- Paste the text or the entity soup.
- Encode or decode.
- Paste back into the CMS. Preview there, not only here.
Honest limits
Not DOMPurify. Not a full HTML parser that understands every historic entity.