Show markup as text
Escape reserved characters to display a piece of markup as text. Choose named, decimal or hexadecimal entities. The result is always shown as text here, so pasting a script does not execute it.
Worked example
The opening angle bracket becomes < in named mode, < in decimal mode, or < in hexadecimal mode.
Before you rely on the result
Escaping HTML is not a general security fix for JavaScript, CSS or URLs. Each context has its own escaping rules. Decoding reveals markup; do not insert it into a live page unless you trust it.
Cite this page
ToolOctopus. “HTML entity encoder and decoder.” Updated . https://tooloctopus.com/html-entity-encoder-decoder.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.