We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4e89a commit 229f68fCopy full SHA for 229f68f
readme.md
@@ -88,6 +88,12 @@ Document interface to use (default: `global.document`).
88
89
`namespace` to use to create [*elements*][element].
90
91
+## Security
92
+
93
+Use of `hast-util-to-dom` can open you up to a
94
+[cross-site scripting (XSS)][xss] attack if the hast tree is unsafe.
95
+Use [`hast-util-santize`][sanitize] to make the hast tree safe.
96
97
## Related
98
99
* [`hast-util-sanitize`](https://github.com/syntax-tree/hast-util-sanitize)
@@ -158,3 +164,7 @@ abide by its terms.
158
164
[element]: https://github.com/syntax-tree/hast#element
159
165
160
166
[tree]: https://github.com/syntax-tree/unist#tree
167
168
+[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
169
170
+[sanitize]: https://github.com/syntax-tree/hast-util-sanitize
0 commit comments