How to use this tool
- Enter plain text.
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
Input reference and sample values
Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.
| Input | Format and units | Sample |
|---|---|---|
| Plain text | Keep the structure and separators shown in the sample. Line breaks are retained in this input. | *Important* [label](https://example.com) # note |
Result for these sample inputs
\*Important\* \[label\]\(https\:\/\/example\.com\) \# note
Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.
The method, explained
Prefix each ASCII punctuation character with a backslash, preserving letters, digits, spaces and line breaks. This follows CommonMark backslash-escape syntax.
Using plain text = *Important* [label](https://example.com) # note, the result is \*Important\* \[label\]\(https\:\/\/example\.com\) \# note. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
For ordinary inline text under CommonMark. Indented code, HTML containers and renderer extensions need separate treatment; this is not HTML sanitization.
Common questions
Can this sanitize untrusted HTML?
No. Markdown escaping is only a formatting transformation. A renderer that accepts HTML still needs an appropriate sanitization policy for untrusted content.
Does my text leave my device?
Processing runs locally in this browser. Your pasted text is not uploaded to an API or stored in a ClarityKit account.
Methodology maintained by ClarityKit. How these tools are built and checked.