HTML Escape / Unescape
Escape HTML special characters to entities and unescape HTML entities back to characters.
Escaped output
Unescaped output
Frequently asked questions
Why escape HTML?
Escaping HTML prevents cross-site scripting (XSS) attacks by converting special characters like < > " & into their HTML entity equivalents. Always escape user-generated content before rendering it in HTML.