How to Install and Uninstall ruby-sanitize Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 14,2024

1. Install "ruby-sanitize" package

Learn how to install ruby-sanitize on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ruby-sanitize

2. Uninstall "ruby-sanitize" package

Please follow the step by step instructions below to uninstall ruby-sanitize on Ubuntu 21.10 (Impish Indri):

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

3. Information about the ruby-sanitize package on Ubuntu 21.10 (Impish Indri)

Package: ruby-sanitize
Architecture: all
Version: 5.2.1-2
Priority: optional
Section: universe/ruby
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Ruby Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 100
Depends: ruby | ruby-interpreter, ruby-crass (>= 1.0.2), ruby-nokogiri (>= 1.4.4), ruby-nokogumbo (>= 2.0~)
Breaks: ruby-gollum-lib (<< 4.2.7.9-2~)
Filename: pool/universe/r/ruby-sanitize/ruby-sanitize_5.2.1-2_all.deb
Size: 24804
MD5sum: 7cc78307463bcf8707d70f2d8886bbdc
SHA1: 5477ec2373411439610b52590742930bed4f72ea
SHA256: 330a335631e17117f06f244ef06f06c7c48806049ab1a1e9e5cf547bdc00b556
SHA512: 1783188398ce16c01e0ef24e5e5ffbb6a7470d541fc0a43ecdc082865c027aee1f9d192df13bf2ac44dd54620db3ddfb62f466bb90b53c854de4c9a4c0798b7e
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