UTILITIES NEWBIE

HTML text escaper

Represent markup-sensitive characters as entity text instead of treating them as HTML tags.

Source

0 characters

Import a local UTF-8 file
Print and optional local draft

An explicit save stores only source text as plaintext in this browser on this device. Do not save secrets or use a shared device. Nothing is saved or loaded automatically.

No draft has been loaded.

Output

Worked input and output

Input

<p class="note">A & B</p>

Output

&lt;p class=&quot;note&quot;&gt;A &amp; B&lt;/p&gt;

The less-than, greater-than, quote and ampersand characters become HTML entity text. Encoding a string is different from sanitizing an HTML document or making an arbitrary URL safe.