We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76cb1ae commit 7b61a59Copy full SHA for 7b61a59
readme.md
@@ -86,6 +86,11 @@ Utility to get the plain-text value of a [*node*][node].
86
* Replaced [*elements*][element] (such as `audio`) are treated like
87
non-replaced *elements*
88
89
+## Security
90
+
91
+`hast-util-to-text` does not change the syntax tree so there are no
92
+openings for [cross-site scripting (XSS)][xss] attacks.
93
94
## Related
95
96
* [`hast-util-to-string`](https://github.com/rehypejs/rehype-minify/tree/master/packages/hast-util-to-string)
@@ -168,3 +173,5 @@ abide by its terms.
168
173
[text]: https://github.com/syntax-tree/hast#text
169
174
170
175
[element]: https://github.com/syntax-tree/hast#element
176
177
+[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
0 commit comments