// Escape HTML
<a href="x">Tom & Jerry</a><a href="x">Tom & Jerry</a>Start typing to search, or pick a tool.
Escape unsafe HTML characters into entities and decode entities back to characters. Useful for safely embedding user content in HTML.
Text
Escaped
// Escape HTML
<a href="x">Tom & Jerry</a><a href="x">Tom & Jerry</a>// Unescape entities
<a href="x">Tom & Jerry</a><a href="x">Tom & Jerry</a>No. Escaping makes text safe to put inside an HTML document, but it does not protect against every XSS vector. Use a sanitizer like DOMPurify when rendering untrusted HTML.
<, >, &, ", and ' are escaped to their named or numeric entity equivalents.
No. Encoding and decoding happen in your browser.