{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/symfony-html-sanitizer/","markdown":"https://findsoftware.frbit.cloud/symfony-html-sanitizer.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":"symfony-html-sanitizer","name":"Symfony HtmlSanitizer","urls":{"home":"https://symfony.com/packages/html-sanitizer","repository":"https://github.com/symfony/html-sanitizer","docs":"https://symfony.com/doc/current/html_sanitizer.html"},"category":["library"],"description":"PHP component with an object-oriented API for sanitizing untrusted HTML input before it is inserted into a document.","maintainer":"Fabien Potencier","firstRelease":2022,"hosting":["php"],"language":"php","runtime":["php"],"runtimeMin":"php 8.4","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"composer","licenseModel":"open-source","license":"MIT","currentMajor":"8","latestReleaseDate":"2026-11-04T00:00:00.000Z","githubStargazers":285,"contributors":25,"packagistDownloads":71420224,"npmWeeklyDownloads":null,"packagistMonthlyDownloads":9744662,"dependentRepos":1150,"dependentPackages":29,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://symfony.com/packages/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://symfony.com/doc/current/html_sanitizer.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://symfony.com/packages/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/symfony/html-sanitizer/blob/v8.1.11/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/symfony/html-sanitizer/blob/v8.1.11/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/symfony/html-sanitizer/blob/8.2/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://repo.packagist.org/p2/symfony/html-sanitizer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://github.com/symfony/html-sanitizer/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/symfony/html-sanitizer/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://symfony.com/doc/current/html_sanitizer.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/symfony/html-sanitizer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistMonthlyDownloads","url":"https://packagist.org/packages/symfony/html-sanitizer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/symfony/html-sanitizer/contributors","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/symfony/html-sanitizer","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"Symfony HtmlSanitizer is a PHP component that cleans untrusted HTML before it is inserted into a document. It rebuilds the markup from the elements and attributes a configuration allows, and its docs give output from WYSIWYG editors as an example of untrusted input. It is based on the W3C HTML Sanitizer standard proposal.\n\nThe Symfony framework exposes the sanitizer as a service. It integrates with Symfony Forms through an option on text fields, and the docs show a Twig filter and a standalone use.\n\nThe repository is a read-only split of the main Symfony repository, which takes the issues and pull requests."}