HTML Escape/Unescape

Escape and unescape HTML special chars. XSS prevention, text display.

About this tool

This tool escapes and unescapes HTML special chars in one click. Three features: 1) Escape to < > & etc., unescape to restore, 2) XSS prevention and safe user input display, 3) All processing in browser—no data sent to server.

Tool interface

Usage

  1. Enter text in the input field
  2. Click Escape for entity refs or Unescape to restore
  3. Use for XSS prevention when displaying user input safely

When to use

XSS prevention when displaying user input, escaping HTML in JSON, template output check.

Examples