Skip to content

Commit c00573f

Browse files
authored
Add notes on security
1 parent e5a2efe commit c00573f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readme.md

+7
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ embedded({
4747

4848
Check if `node` is an [*embedded*][spec] [*element*][element].
4949

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

5257
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -106,3 +111,5 @@ abide by its terms.
106111
[hast]: https://github.com/syntax-tree/hast
107112

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

0 commit comments

Comments
 (0)