Display HTML as text
Encode angle brackets, ampersands, quotes, and apostrophes before placing snippets inside documentation, examples, or CMS fields.
Utilities
Convert characters such as <, >, &, quotes, and apostrophes into HTML entities on the server.
Results will appear below the editor after you run the tool.
Encode angle brackets, ampersands, quotes, and apostrophes before placing snippets inside documentation, examples, or CMS fields.
Encoded snippets remain readable without turning into active tags or breaking the surrounding page.
Use the output in StaticX documentation pages, code examples, changelog entries, or agent instructions.
Escape markup before it is shown as documentation, examples, or inline teaching material.
Add the HTML or text that needs to be displayed literally.
Submit it to StaticX and review the escaped output returned by the server.
Place the encoded result inside your static page, docs block, or template.
If a tutorial needs to show a form, script tag, or layout fragment, raw HTML can be interpreted by the browser instead of shown to the reader.
Encoding converts special characters into entities so the snippet stays visible and the rest of the static page remains structurally intact.
Show form markup, MCP snippets, or template fragments without creating real elements.
Encoding is for display. It is not a full security sanitizer for untrusted rich content.
Paste the encoded result into the page and preview before publishing a new StaticX version.
Short, practical answers for using this page safely.
It converts characters such as <, >, &, quotes, and apostrophes into safe HTML entities.
Only encode form code when you want to display it as an example. Do not encode form markup that should actually submit.
Encoding helps display text safely, but it is not a complete content moderation or sanitization system.