Skip to content

Commit 7029bbc

Browse files
authored
Add notes on security
1 parent ade6aab commit 7029bbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ or more of space, tab (`\t`), line feed (`\n`), carriage return (`\r`), or form
5959
feed (`\f`).
6060
If `node` is passed it must be a [*text*][text] node.
6161

62+
## Security
63+
64+
`hast-util-whitespace` does not change the syntax tree so there are no openings
65+
for [cross-site scripting (XSS)][xss] attacks.
66+
6267
## Contribute
6368

6469
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -120,3 +125,5 @@ abide by its terms.
120125
[node]: https://github.com/syntax-tree/hast#nodes
121126

122127
[text]: https://github.com/syntax-tree/hast#text
128+
129+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)