Text to unescape

Unescaped text

Why unescape HTML text?

Unescaping HTML is useful when you have HTML-escaped text that you want to convert back to its original form with proper special characters. This is often needed when working with data from HTML forms, APIs, or databases where text has been escaped for safe storage or transmission.

Examples of HTML unescaping

Escaped text

<div class="container">
  <h1>Hello "World"</h1>
  <p>This is a paragraph with <strong>bold</strong> text.</p>
  <p>Special characters: & < > ' "</p>
  <a href="https://example.com?param=value&another=value">Link</a>
</div>

Unescaped text

<div class="container">
  <h1>Hello "World"</h1>
  <p>This is a paragraph with <strong>bold</strong> text.</p>
  <p>Special characters: & < > ' "</p>
  <a href="https://example.com?param=value&another=value">Link</a>
</div>

Common HTML entities that get unescaped

EntityCharacterDescription
&amp;&Ampersand
&lt;<Less than
&gt;>Greater than
&quot;"Double quote
&#39;'Single quote
&#x27;'Single quote (hex)
&#x2F;/Forward slash (hex)
&nbsp; Non-breaking space

When to use HTML unescaping

  • When processing data from HTML forms or APIs where text has been escaped
  • When you need to render HTML that was stored in an escaped format
  • When working with content management systems that store HTML in escaped form
  • When extracting text from HTML documents where entities need to be converted to their original characters
  • When preparing text for editing that was previously escaped for display

Note: Be cautious when unescaping HTML from untrusted sources and then rendering it, as this could potentially lead to XSS (Cross-Site Scripting) vulnerabilities if the unescaped content contains malicious code.

Other tools

Other tools available on this website: