HTML ESCAPE

To display HTML source code in a web page, replace all of the <, >, and & characters with &lt;, &gt;, and &amp;. Paste the HTML source code in the HTML Source Code box and click the HTML Escape button. The window named Escaped HTML Source Code contains the escaped HTML source code and can be pasted into an HTML document inside of <pre> tags.

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

In addition, the syntax highlighted markup is shown using the W3schools highlighter. Cut and paste the text in the Syntax Highlighted HTML Source Code window for color syntax highlighting without javascript.

HTML Source Code:

⎘ Copy

Escaped HTML Source Code:

⎘ Copy


Display Escaped HTML Source Code:

⎘ Copy

Escaped HTML Source Code Showing the Escape Sequences:

⎘ Copy


Display Escaped HTML Source Code Showing the Escape Sequences:

⎘ Copy

Syntax Highlighted HTML Source Code:

⎘ Copy

Display HTML Syntax Highlighted Source Code

⎘ Copy