Skip to content

Commit 8e03c06

Browse files
authored
Add notes on security
1 parent dca3713 commit 8e03c06

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
@@ -69,6 +69,11 @@ Check if the given value is [*phrasing*][spec] content.
6969

7070
`boolean` — Whether `node` passes the test.
7171

72+
## Security
73+
74+
`hast-util-phrasing` does not change the syntax tree so there are no openings
75+
for [cross-site scripting (XSS)][xss] attacks.
76+
7277
## Contribute
7378

7479
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -128,3 +133,5 @@ abide by its terms.
128133
[hast]: https://github.com/syntax-tree/hast
129134

130135
[node]: https://github.com/syntax-tree/hast#nodes
136+
137+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)