File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ HTML Sanitizer for Dart
2
2
=======================
3
3
4
4
When embedding HTML from untrusted source in a website it is important to
5
- sanitize the HTML to prevent injection of untrusted Javascript (XSS exploits).
5
+ sanitize the HTML to prevent injection of untrusted JavaScript (XSS exploits).
6
6
This package provides a simple function sanitizing HTML to prevent XSS exploits
7
7
and limit interference with other elements on the page.
8
8
9
9
** Disclaimer:** This is not an officially supported Google product.
10
10
11
11
This package uses an HTML5 parser to build-up an in-memory DOM tree and
12
- filter elements and attributes, in-line with [ rules employed by Github ] [ 1 ]
13
- when sanitizing GFM (Github Flavored Markdown).
12
+ filter elements and attributes, in-line with [ rules employed by GitHub ] [ 1 ]
13
+ when sanitizing GFM (GitHub Flavored Markdown).
14
14
15
- This removes all inline Javascript , CSS, ` <form> ` , and other elements that
15
+ This removes all inline JavaScript , CSS, ` <form> ` , and other elements that
16
16
could be used for XSS. This sanitizer is more strict than necessary to
17
17
guard against XSS as this sanitizer also attempts to prevent the sanitized
18
18
HTML from interfering with the page it is injected into.
You can’t perform that action at this time.
0 commit comments