INDEPENDENT EXPLAINERS · GLOBAL EDITIONEvidence first. Perspective follows.
All tools

HTML escape

Processed in this browser. Nothing is uploaded.

Example

Example: <p>Hello</p>

Maximum 1,000,000 characters.

How to use this result

Replace five HTML-significant characters with entity text so a markup example can be displayed as text. Use it when preparing an example containing angle brackets, quotes or an ampersand.

Worked example

text: <p>Hello</p>
&lt;p&gt;Hello&lt;/p&gt;

Limits and edge cases

The tool escapes &, <, >, double quotes and single quotes. Existing entities are escaped again, so &amp; becomes &amp;amp;. This is not an HTML sanitizer or a complete security solution for every web context.