File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ Utility to get the plain-text value of a [*node*][node].
86
86
* Replaced [ * elements* ] [ element ] (such as ` audio ` ) are treated like
87
87
non-replaced * elements*
88
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
+
89
94
## Related
90
95
91
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
You can’t perform that action at this time.
0 commit comments