Skip to content

Commit 743cbf8

Browse files
authored
Add notes on security
1 parent 41be587 commit 743cbf8

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
@@ -46,6 +46,11 @@ heading({
4646

4747
Check if the given value is a [*heading*][spec] [*element*][element].
4848

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

5156
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -105,3 +110,5 @@ abide by its terms.
105110
[hast]: https://github.com/syntax-tree/hast
106111

107112
[element]: https://github.com/syntax-tree/hast#element
113+
114+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)