DISPLAY HTML IN HTML

To display HTML markup in an HTML document replace all of the <, >, and & characters with &lt;, &gt;, and &amp;. I've done this too many times by hand and wrote this web page to help out. Paste the HTML markup in the HTML Markup box and click the HTML Escape button.

HTMLEscape
<&lt;
>&gt;
&&amp;

As a bonus, the syntax highlighted markup is shown using the W3schools highlighter. Cut and paste the highlight markup for color syntax highlighting without javascript.

HTML Markup:

Escaped HTML Markup:



Display Escaped HTML Markup:

Escaped HTML Markup Showing the Escape Sequences:



Display Escaped HTML Markup Showing the Escape Sequences:

Syntax Highlighted HTML Markup:

Display HTML Syntax Highlighted Markup