Markdown Preview and HTML Source
Preview Markdown live through an inert resource-free preflight and strict DOMPurify allowlist while retaining the complete raw HTML source for copying.
Enabling local controls…
Sanitized live preview
Preview removes all attributes, resource tags and link destinations, then applies a DOMPurify allowlist. Raw HTML below is unsanitized; apply your own policy before rendering it elsewhere.
Raw HTML (unsanitized)
If clipboard access is denied, select the read-only output manually.
How to use this tool
Type Markdown and compare the sanitized preview with raw HTML source. Preview strips all attributes, resource elements and link destinations before DOM rendering.
When not to use it
Copied raw HTML is not sanitized and may contain active content. Only the separate preview is sanitized; apply your own policy before rendering exported HTML elsewhere.