
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
decontaminator
Advanced tools
Ruby HTML sanitizer based on a lightweight Oga parser.
Current version: 1.0.2
Supported Ruby versions: 1.9.3, 2.0, 2.1, 2.2, JRuby 1.7, and Rubinius 2.5
Add this line to your application's Gemfile:
gem 'decontaminator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install decontaminator
require 'decontaminator'
input = '<h1>Heading</h1><p>Lorem ipsum...</p><script>alert(1)</script>'
fragment = Decontaminator::Fragment.new(input)
puts fragment.decontaminate.inspect
" Heading Lorem ipsum... "
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Copyright © 2015-2018 Altmetric LLP
Distributed under the MIT license.
FAQs
Unknown package
We found that decontaminator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.