Details
Text Preview renders text input as formatted HTML. It supports four input formats:
- Markdown (default) - Converts Markdown syntax to HTML and renders it.
- Rich Text - Lets you paste formatted content from websites and document editors, then converts it into Markdown for previewing.
- HTML - Renders raw HTML input directly, with sanitization applied to remove scripts, event handlers, and external styles.
- Plain Text - Displays text as-is, preserving whitespace and line breaks.
When using HTML input, the tool sanitizes the content to ensure safety by stripping <script> tags, inline event handlers (onclick, onerror, etc.), and external stylesheet references.
