HTML & Markdown
Work with the markup formats every web pipeline already speaks. Sanitize untrusted HTML against an allowlist, escape special characters for safe embedding, strip tags down to plain text, or convert HTML into clean Markdown for content-management import. Need a table of contents for a long Markdown document? `markdown-toc` builds one from the heading hierarchy. Each tool runs deterministically inside a Worker — no DOM, no Puppeteer, no surprise side effects.
HTML escape / unescape
HTML-escape text (or unescape it back).
HTML sanitize
Strip dangerous HTML and return safe-to-render markup.
HTML to Markdown
Convert HTML to clean Markdown.
HTML to text
Strip HTML and return readable plain text.
Markdown to PDF
Render a Markdown document to a PDF.
Markdown TOC
Generate a table of contents from a Markdown document.