Markdown preview
Live GFM preview with tables, task lists, syntax highlighting and HTML export.
markdownEscape HTML special characters and decode named or numeric entities. Inspect angle brackets, quotes and double escaping as plain text.
Encode HTML as literal text. Decoded output is always displayed as text, never executed as HTML or script.
<b>Hello & world</b>Encoding produces <b>Hello & world</b>, for displaying literal tags in a normal HTML text context.
No. Entity escaping and sanitizing allowed tags are different operations. Safe handling depends on the context: HTML text, attributes, URLs or scripts.
One decode processes one layer. Determine the source and intended number of layers before repeating it; do not insert repeatedly decoded output as trusted HTML.
No. Results are displayed as text. Decoding handles entity-shaped fragments rather than mounting the complete input as a page.