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].
8686* Replaced [ * elements* ] [ element ] (such as ` audio ` ) are treated like
8787 non-replaced * elements*
8888
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+
8994## Related
9095
9196* [ ` 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.
168173[ text ] : https://github.com/syntax-tree/hast#text
169174
170175[ 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