ruby-sanitize_2.1.0-2_all.deb


Advertisement

Description

ruby-sanitize - whitelist-based HTML sanitizer

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe i386
Package name: ruby-sanitize
Package version: 2.1.0
Package release: 2
Package architecture: all
Package type: deb
Installed size: 55 B
Download size: 13.18 KB
Official Mirror: archive.ubuntu.com
Sanitize is a whitelist-based HTML sanitizer. Given a list of acceptable elements and attributes, Sanitize will remove all unacceptable HTML from a string. Using a simple configuration syntax, you can tell Sanitize to allow certain elements, certain attributes within those elements, and even certain URL protocols within attributes that contain URLs. Any HTML elements or attributes that you don't explicitly allow will be removed. Because it's based on Nokogiri, a full-fledged HTML parser, rather than a bunch of fragile regular expressions, Sanitize has no trouble dealing with malformed or maliciously-formed HTML and returning safe output.

Alternatives

    Download

    Source package: ruby-sanitize

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install ruby-sanitize deb package:
      # sudo apt-get install ruby-sanitize

    Files

    • /usr/lib/ruby/vendor_ruby/sanitize.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/config.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/version.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/config/basic.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/config/relaxed.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/config/restricted.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/transformers/clean_cdata.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/transformers/clean_comment.rb
    • /usr/lib/ruby/vendor_ruby/sanitize/transformers/clean_element.rb
    • /usr/share/doc/ruby-sanitize/README.md.gz
    • /usr/share/doc/ruby-sanitize/changelog.Debian.gz
    • /usr/share/doc/ruby-sanitize/copyright
    • /usr/share/rubygems-integration/all/specifications/sanitize-2.1.0.gemspec

    Changelog

    2016-02-25 - Balasankar C <balasankarc@autistici.org> ruby-sanitize (2.1.0-2) unstable; urgency=medium * Team upload. * Add fix-tests-sanitize.patch - Make tests use Debian nokogiri syntax (Closes: #808450) * Bump Standards Version (No changes). * Fix Vcs-* links to use secure protocol. * Bump debhelper compatibility.

    2014-02-15 - Jonas Genannt <jonas.genannt@capi2name.de> ruby-sanitize (2.1.0-1) unstable; urgency=low * Initial release (Closes: #739114)

    Advertisement
    Advertisement