Best for
- Technical documentation pages.
- CMS workflows where raw tags should remain visible.
Escape HTML entities like `<`, `>`, `&`, and quotes so raw snippets can be displayed safely in docs, CMS content, and code examples.
Input
<h1 class="hero">Welcome</h1>Output
<h1 class="hero">Welcome</h1>That is expected because each special character is represented as an entity.
Only HTML-special characters need escaping; regular letters remain as-is.
No. Encoding escapes characters for display; sanitization removes or filters unsafe markup.
No, it encodes them as text so they are not interpreted as HTML.