Skip to content

Commit 36979b3

Browse files
authored
Add explicit suggestion to configure security-related options
1 parent 8a0cc70 commit 36979b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ The included `demo` directory contains an HTML->Markdown conversion form to try
6161

6262
### Conversion options
6363

64-
By default, HTML To Markdown preserves HTML tags without Markdown equivalents, like `<span>` and `<div>`.
64+
> [!WARNING]
65+
> By default, this library preserves HTML tags without Markdown equivalents, like `<span>`, `<div>`, `<iframe>`, `<script>`, etc. If you will be parsing untrusted input from users, **please consider setting the `strip_tags` and/or `remove_nodes` options** documented below, and also using a library (like [HTML Purifier](https://github.com/ezyang/htmlpurifier)) to provide additional HTML filtering.
6566
6667
To strip HTML tags that don't have a Markdown equivalent while preserving the content inside them, set `strip_tags` to true, like this:
6768

0 commit comments

Comments
 (0)