loofah

https://rubygems.org/gems/loofah
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments. It's built on top of Nokogiri and libxml2, so it's fast and has a nice API. Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML sanitizers, which are based on HTML5lib's whitelist, so it most likely won't make your codes less secure. (These statements have not been evaluated by Netexperts.) ActiveRecord extensions for sanitization are available in the [`loofah-activerecord` gem](https://github.com/flavorjones/loofah-activerecord).

Total

Ranking: 58 of 147,867
Downloads: 86,795,244

Daily

Ranking: 57 of 147,860
Downloads: 46,908

Depended by

RankDownloadsName
6383,175,625rails-html-sanitizer
1,6921,304,712feedjira
5,280146,910loofah-activerecord
6,030117,083zendesk_apps_support
6,384105,690arachni
8,52566,666bolognese
12,19141,066grape-papertrail
15,15431,076zen
15,53530,091decidim-core
16,01828,881extractula
18,00224,780bergamasco
18,11024,590crazy_harry
18,38424,151makeup
20,47921,105sql_search_n_sort
21,00220,502mcbean
29,64713,593hot_date_rails
41,1559,131shamu
42,9228,661sanitize_model_attributes
43,3148,578tramway-core
45,1448,114jekyll_search

Depends on

RankDownloadsName
10240,727,093rake
12226,438,500json
18194,093,250nokogiri
20166,672,522minitest
8267,474,472rdoc
19725,485,114crass
7955,591,557hoe
1,2212,332,341rr
5,281146,851hoe-git
7,80576,398hoe-bundler
8,85063,148hoe-debugging
10,01153,493hoe-gemspec
17,15626,398concourse