Convert reserved characters (<, >, &, ", ') into safe HTML entities or unescape encoded entities into plain text for web pages and documentation.
An html entity encoder converts reserved markup characters—such as < (less than), > (greater than), & (ampersand), and " (double quote)—into their standardized HTML character entity representations (<, >, &, "). This prevents Cross-Site Scripting (XSS) attacks and browser rendering glitches.
In Hypertext Markup Language (HTML), specific characters are reserved for markup syntax. For example, the less-than symbol (<) signals the beginning of an opening tag. If web developers insert unescaped reserved symbols directly inside user comments or documentation, browsers will misinterpret them as DOM tags or open doors to Cross-Site Scripting (XSS) attacks.
| Character | Description | Named Entity | Decimal Entity | Hex Entity |
|---|---|---|---|---|
& |
Ampersand | & |
& |
& |
< |
Less Than | < |
< |
< |
> |
Greater Than | > |
> |
> |
" |
Double Quotation Mark | " |
" |
" |
' |
Single Quote (Apostrophe) | ' |
' |
' |
© |
Copyright Symbol | © |
© |
© |
While named entities like < are easier for human developers to remember, numeric decimal (<) and hexadecimal (<) entities provide universal support across strict XML parsers, legacy systems, and uncommon Unicode characters without relying on named dictionaries.
Check out complementary string manipulation and security analyzers: