{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/htmlpurifier/","markdown":"https://findsoftware.frbit.cloud/htmlpurifier.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":"htmlpurifier","name":"HTML Purifier","urls":{"repository":"https://github.com/ezyang/htmlpurifier","docs":"https://github.com/ezyang/htmlpurifier/tree/master/docs"},"category":["library"],"description":"HTML filter library written in PHP that removes XSS attacks and makes the output standards-compliant HTML.","maintainer":"Edward Z. Yang","maintainerType":"individual","firstRelease":2006,"hosting":["php"],"language":"php","runtime":["php"],"runtimeMin":"php 5.6","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"composer","licenseModel":"open-source","license":"LGPL-2.1","currentMajor":"4","latestReleaseDate":"2026-09-15T00:00:00.000Z","githubStargazers":3349,"contributors":95,"packagistDownloads":398363604,"npmWeeklyDownloads":null,"dependentRepos":36567,"dependentPackages":417,"checkedAt":"2026-11-09T00:00:00.000Z","addedAt":"2026-11-09T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/ezyang/htmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"urls","url":"https://github.com/ezyang/htmlpurifier/blob/master/README.md","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/ezyang/htmlpurifier/blob/v4.19.1/composer.json","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/ezyang/htmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"category","url":"https://github.com/ezyang/htmlpurifier/blob/master/README.md","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/ezyang/htmlpurifier/blob/v4.19.1/composer.json","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/ezyang/htmlpurifier/blob/v4.19.1/composer.json","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/ezyang/htmlpurifier/blob/master/README.md","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/ezyang/htmlpurifier.json","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/ezyang%2Fhtmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/ezyang%2Fhtmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/ezyang/htmlpurifier/git/commits/725a8cb4a4a9d0788c54c60097c6d097d6cb29af","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/ezyang/htmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"licenseModel","url":"https://raw.githubusercontent.com/ezyang/htmlpurifier/master/LICENSE","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/ezyang/htmlpurifier/releases","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/ezyang/htmlpurifier/releases","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/ezyang/htmlpurifier","checkedAt":"2026-11-09T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/ezyang/htmlpurifier/contributors?per_page=1","checkedAt":"2026-11-09T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"HTML Purifier is an HTML filter library written in PHP. It splits a document into tokens, removes elements and attributes that are not on its whitelist, and checks nesting and well-formedness, so the output is standards-compliant HTML. The author named in the package manifest is Edward Z. Yang.\n\n## Worth knowing\n\nThe project's own site says the library \"is not perfect; it can interact poorly with existing JavaScript on websites\"."}