{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/ruby-sanitize/","markdown":"https://findsoftware.frbit.cloud/ruby-sanitize.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"ruby-sanitize","name":"Sanitize","urls":{"repository":"https://github.com/rgrove/sanitize","docs":"https://rubydoc.info/gems/sanitize/Sanitize"},"category":["library"],"description":"Ruby library that cleans HTML and CSS strings by keeping only the elements, attributes and properties on an allowlist.","maintainer":"Ryan Grove","maintainerType":"individual","firstRelease":2008,"hosting":["ruby"],"language":"ruby","runtime":["ruby"],"runtimeMin":"ruby 3.2","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"gem","licenseModel":"open-source","license":"MIT","currentMajor":"7","latestReleaseDate":"2026-11-02T00:00:00.000Z","githubStargazers":2054,"contributors":41,"packagistDownloads":null,"npmWeeklyDownloads":null,"dependentRepos":10715,"dependentPackages":260,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/rgrove/sanitize","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://raw.githubusercontent.com/rgrove/sanitize/main/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://raw.githubusercontent.com/rgrove/sanitize/main/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/rgrove/sanitize","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://raw.githubusercontent.com/rgrove/sanitize/main/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/rgrove/sanitize/blob/v7.0.2/sanitize.gemspec","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/rgrove/sanitize/blob/v7.0.2/sanitize.gemspec","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://raw.githubusercontent.com/rgrove/sanitize/main/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/rgrove/sanitize/blob/v7.0.2/sanitize.gemspec","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://raw.githubusercontent.com/rgrove/sanitize/main/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/rgrove/sanitize/commits/release-1.0.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/rgrove/sanitize/releases/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/rgrove/sanitize/releases/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/rgrove/sanitize","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/rgrove/sanitize/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/sanitize","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/sanitize","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"Sanitize is a Ruby library that works as an allowlist-based sanitizer for HTML and CSS: it removes whatever elements, attributes and properties are not on the allowlist. The README says it is built on the Nokogiri HTML5 parser and on Crass, a CSS parser.\n\n## Worth knowing\n\nThe README warns that Sanitize cannot fully sanitize the contents of math and svg elements, and that it removes them by default."}