HTML Entity Encode & Decode
Encode or decode HTML entities. Convert special characters to HTML entities and vice versa. Supports named and numeric entities.
Examples
HTML tags
In:<div class="main">Hello & welcome</div>
Out:<div class="main">Hello & welcome<...
Script tag (XSS prevention)
In:<script>alert('xss')</script>
Out:<script>alert('xss')</script>
Math expression
In:5 < 10 & 10 > 5
Out:5 < 10 & 10 > 5