Skip to content

Commit 6cda552

Browse files
authored
Add notes on security
1 parent 446660a commit 6cda552

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ Handles [positional information][position-information] properly.
5353

5454
The given `tree`.
5555

56+
## Security
57+
58+
Use of `mdast-util-compact` does not involve [**hast**][hast] or user content
59+
so there are no openings for [cross-site scripting (XSS)][xss] attacks.
60+
5661
## Contribute
5762

5863
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -116,3 +121,7 @@ abide by its terms.
116121
[text]: https://github.com/syntax-tree/mdast#text
117122

118123
[blockquote]: https://github.com/syntax-tree/mdast#blockquote
124+
125+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
126+
127+
[hast]: https://github.com/syntax-tree/hast

0 commit comments

Comments
 (0)