HTML Entities
Escape and unescape HTML characters.
When to use HTML Entities
Display reserved characters as text; entity escaping alone does not sanitize arbitrary HTML.
How to use HTML Entities
- Prepare the input for HTML Entities: Plain text or HTML character entities. Paste the text or use Load example.
- Select Encode or Decode for the operation you need.
- Check the output: Escaped or decoded character entities. Copy only the result you intend to use.
A practical example
<h1>Hello</h1> → <h1>Hello</h1>
Limitations and common mistakes
Entity encoding is not a complete HTML sanitizer or XSS protection strategy.
Questions about HTML Entities
What should I enter in HTML Entities?
Plain text or HTML character entities.
What does HTML Entities return?
Escaped or decoded character entities.
What should I check before using the result?
Entity encoding is not a complete HTML sanitizer or XSS protection strategy.
Supported input and output
Plain text or HTML character entities.
Escaped or decoded character entities.
