Skip to content

Commit

Permalink
rearrange other libs order + improve linking to closure/jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
rdela committed May 15, 2019
1 parent d2ffa87 commit 5bcb7ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,10 @@ The `SanitizeHelper` module provides a set of methods for scrubbing text of unde
```
**Other libraries that provide HTML Sanitization include:**
- [HTML sanitizer](https://github.com/google/closure-library/tree/master/closure/goog/html/sanitizer) from [Google Closure Library](https://developers.google.com/closure/library/)
- [PHP HTML Purifier](http://htmlpurifier.org/).
- [JavaScript (DOM-only, requires JSDOM for Node.js)](https://github.com/cure53/DOMPurify).
- [Node.js (depends on htmlparser2)](https://github.com/punkave/sanitize-html).
- [Python Bleach](https://pypi.python.org/pypi/bleach).
- [HTML sanitizer](https://github.com/google/closure-library/blob/master/closure/goog/html/sanitizer/htmlsanitizer.js) from [Google Closure Library](https://developers.google.com/closure/library/) (JavaScript/Node.js, [docs](https://google.github.io/closure-library/api/goog.html.sanitizer.HtmlSanitizer.html))
- [DOMPurify](https://github.com/cure53/DOMPurify) (JavaScript, requires [jsdom](https://github.com/jsdom/jsdom) for Node.js)
- [PHP HTML Purifier](http://htmlpurifier.org/)
- [Python Bleach](https://pypi.python.org/pypi/bleach)
## RULE \#7 - Avoid JavaScript URL's
Expand Down

0 comments on commit 5bcb7ca

Please sign in to comment.