When to use HTML Entity Encoder/Decoder
Your XML product feed is failing the validator because a vendor's product name contains an ampersand — `AT&T` — and your templating layer is emitting it raw instead of as `&`. Or you're debugging an email template where Word-pasted smart quotes are rendering as `“` in the subject line. Paste the text here, hit encode, and every `&`, `<`, `>`, `"`, and `'` comes back as its correct HTML entity. Decode goes the other way: paste entity-stuffed HTML and get clean, readable text in one click. Useful for sanitizing user-generated content before injecting it into a DOM, prepping text for XML sitemaps, or reading entity-encoded strings in a legacy CMS export. Runs in the browser; nothing is sent anywhere.
- Encode user-generated content before inserting it into the DOM
- Fix ampersands breaking an XML product feed validation
- Decode entity-stuffed strings from a legacy CMS data export