How to use HTML Escape
- Paste or type the text you want to escape.
- Adjust the options if you need to.
- Copy the escaped result.
About HTML Escape
HTML gives five characters a special meaning: the ampersand, the two angle brackets and both kinds of quote. If any of them appears in text you want to show on a page, the browser reads it as markup. A "less than" sign in a sentence can swallow the rest of the line, and a stray quote can end an attribute early. Escaping replaces each of those with an entity, such as < for the opening bracket.
This is also your first line of defence against cross-site scripting. Any text that comes from a user and ends up in a page has to be escaped for HTML, either by your template engine or by hand.
What gets escaped
& becomes &, < becomes <, > becomes >, a double quote becomes " and a single quote becomes '.