HTML Entity Encoder
—
Formula: & → & < → < > → > " → "
HTML Entity Encoder
HTML entity encoding converts special characters to their entity equivalents for safe display in web pages.
Conversion Formula
& → & < → < > → > " → "
Each special character is replaced with its named or numeric entity reference.
Step-by-Step Examples
<p>Hello & "World"</p> = <p>Hello & "World"</p>
All special characters encoded
Frequently Asked Questions
What are HTML entities?
HTML entities are special codes that represent characters that have special meaning in HTML, like < and >.
Why encode HTML entities?
To prevent XSS attacks and display special characters as text instead of being interpreted as HTML code.