-
Name
-
sanitize
-
Version
-
6.0.0
-
Platform
-
ruby
-
Authors
-
Ryan Grove
-
Bindir
-
bin
-
Date
-
2021-08-04 00:00:00 UTC
-
Dependencies
-
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
minitest (~> 5.14.4, development)
rake (~> 13.0.6, development)
-
Description
-
Sanitize is an allowlist-based HTML and CSS sanitizer. It removes all HTML and/or CSS from a string except the elements, attributes, and properties you choose to allow.
-
Email
-
ryan@wonko.com
-
Files
-
HISTORY.md
LICENSE
README.md
lib/sanitize.rb
lib/sanitize/config.rb
lib/sanitize/config/basic.rb
lib/sanitize/config/default.rb
lib/sanitize/config/relaxed.rb
lib/sanitize/config/restricted.rb
lib/sanitize/css.rb
lib/sanitize/transformers/clean_cdata.rb
lib/sanitize/transformers/clean_comment.rb
lib/sanitize/transformers/clean_css.rb
lib/sanitize/transformers/clean_doctype.rb
lib/sanitize/transformers/clean_element.rb
lib/sanitize/version.rb
test/common.rb
test/test_clean_comment.rb
test/test_clean_css.rb
test/test_clean_doctype.rb
test/test_clean_element.rb
test/test_config.rb
test/test_malicious_css.rb
test/test_malicious_html.rb
test/test_parser.rb
test/test_sanitize.rb
test/test_sanitize_css.rb
test/test_transformers.rb
-
Homepage
-
https://github.com/rgrove/sanitize/
-
Licenses
-
MIT
-
Require paths
-
lib
-
Required ruby version
-
>= 2.5.0
-
Required rubygems version
-
>= 1.2.0
-
Rubygems version
-
3.2.22
-
Specification version
-
4
-
Summary
-
Allowlist-based HTML and CSS sanitizer.
-
Original platform
-
ruby
-
New platform
-
ruby