CodeCraft

HTML Escape / Unescape

Convert HTML special characters to entities, or restore HTML entities to originals.

&
→
&
<
→
&lt;
>
→
&gt;
"
→
&quot;
'
→
&#39;

How to Use

  1. Paste HTML content or entity strings into the input box.
  2. Click Escape to convert special characters (<, >, & etc.) to HTML entities.
  3. Click Unescape to restore &lt;, &gt; etc. back to original characters.
  4. Click Copy to get the result.

About HTML Escape Tool

HTML escaping converts characters that have special meaning in HTML into their entity equivalents, preventing them from being interpreted as HTML tags or attributes. The five critical characters are: & (ampersand) becomes &amp;, < (less-than) becomes &lt;, > (greater-than) becomes &gt;, double quote becomes &quot;, and single quote becomes &#39;. Failing to escape user-supplied content before inserting it into HTML is one of the most common sources of Cross-Site Scripting (XSS) vulnerabilities. Always escape untrusted input when rendering it in HTML. This tool also supports unescaping HTML entities back to their original characters.

Frequently Asked Questions

Comments (0)

Leave a comment

0/2000