How to Install and Uninstall ruby-sanitize Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 14,2024

1. Install "ruby-sanitize" package

This is a short guide on how to install ruby-sanitize on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install ruby-sanitize

2. Uninstall "ruby-sanitize" package

Learn how to uninstall ruby-sanitize on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove ruby-sanitize $ sudo apt autoclean && sudo apt autoremove

3. Information about the ruby-sanitize package on Ubuntu 20.10 (Groovy Gorilla)

Package: ruby-sanitize
Architecture: all
Version: 4.6.6-2.1
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Extras Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 96
Depends: ruby | ruby-interpreter, ruby-crass (>= 1.0.2), ruby-nokogiri (>= 1.4.4), ruby-nokogumbo (>= 1.4)
Filename: pool/universe/r/ruby-sanitize/ruby-sanitize_4.6.6-2.1_all.deb
Size: 24108
MD5sum: ca4a4b1edf8e7a976d6541e9691b01f1
SHA1: 58aefaf1f6b07240c740a50e4f3df054b6aac007
SHA256: 2f775f5ca3a549fa7e04bd0e799639aa096261919cbcdac23baf20298ac610d6
SHA512: 7da45eb7af769352cd3baa6b05d626be4d18bef2a33bef6b30ca7d5cf62c732a0b434020be8edef71817e295ad0ec8e7308ec9d11f0b0f67a9207ad7944cc083
Homepage: https://github.com/rgrove/sanitize/
Description-en: whitelist-based HTML sanitizer
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.
Description-md5: 2b64f78c43810e31c817317190e764b0
Ruby-Versions: all