Skip to content

Commit 013c73d

Browse files
committed
Add notes on security
1 parent fddbecd commit 013c73d

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
@@ -45,6 +45,11 @@ well.
4545
The `assert.parent`, `assert.text`, `assert.void`, and `assert.wrap`
4646
methods from [`unist-util-assert`][unist-util-assert] are also included.
4747

48+
## Security
49+
50+
`hast-util-assert` does not change the syntax tree so there are no openings for
51+
[cross-site scripting (XSS)][xss] attacks.
52+
4853
## Contribute
4954

5055
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -108,3 +113,5 @@ abide by its terms.
108113
[child]: https://github.com/syntax-tree/unist#child
109114

110115
[hast]: https://github.com/syntax-tree/hast
116+
117+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)