Packagist · packagist:symfony/html-sanitizer
symfony/html-sanitizer active
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
The latest stable version of symfony/html-sanitizer is 8.1.12, published on 2026-11-24. Verified by Vigia on 2026-11-27.
| Latest stable version | 8.1.12 |
|---|---|
| Published | 2026-11-24 18:01:43+00:00 |
| Install | composer require symfony/html-sanitizer |
| Required PHP version (composer.json) | PHP >=8.4.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-27 01:42:51 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the packagist package "symfony/html-sanitizer", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/packagist/symfony/html-sanitizer . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-24 18:01:43 UTC · 2 days ago |
| Stable releases in the last 12 months | 32 |
| Published versions | 109 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
8.1.12 | 2026-11-24 18:01:43 UTC |
7.4.24 | 2026-11-24 18:01:43 UTC |
6.4.51 | 2026-11-22 21:40:21 UTC |
8.1.11 | 2026-11-04 08:39:20 UTC |
7.4.23 | 2026-11-04 08:27:22 UTC |
6.4.50 | 2026-11-04 07:45:19 UTC |
8.1.10 | 2026-10-20 19:26:02 UTC |
7.4.22 | 2026-10-20 19:25:08 UTC |
6.4.49 | 2026-10-20 10:03:35 UTC |
8.1.8 | 2026-09-28 08:00:04 UTC |
7.4.20 | 2026-09-28 05:21:23 UTC |
8.1.7 | 2026-09-04 10:14:04 UTC |
7.4.19 | 2026-09-04 10:11:42 UTC |
6.4.46 | 2026-09-04 09:16:09 UTC |
8.1.6 | 2026-08-30 01:03:44 UTC |
7.4.18 | 2026-08-30 00:47:26 UTC |
6.4.45 | 2026-08-29 14:18:45 UTC |
8.1.1 | 2026-06-06 11:11:44 UTC |
8.0.14 | 2026-06-06 11:11:34 UTC |
7.4.14 | 2026-06-06 11:10:32 UTC |
Showing the 20 most recent of 78 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | none |
php 8.0 | none |
php 8.1 | 6.4.51 |
php 8.2 | 7.4.24 |
php 8.3 | 7.4.24 |
php 8.4 | 8.1.12 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of symfony/html-sanitizer?
The latest stable version of symfony/html-sanitizer is 8.1.12, published on 2026-11-24. Verified by Vigia on 2026-11-27.
How do I install the latest version of symfony/html-sanitizer?
Run composer require symfony/html-sanitizer. The latest stable version is 8.1.12 (verified 2026-11-27).
Is symfony/html-sanitizer deprecated?
No. symfony/html-sanitizer is not marked as deprecated in the registry.
Which PHP version does symfony/html-sanitizer require?
symfony/html-sanitizer 8.1.12 declares this requirement: PHP >=8.4.1.
Does symfony/html-sanitizer 8.1.12 have known vulnerabilities?
No known advisories affect symfony/html-sanitizer 8.1.12 according to the data Vigia checks.
Is symfony/html-sanitizer still maintained?
symfony/html-sanitizer published 32 stable releases in the last 12 months; the most recent was 2 days ago. Activity: active.
Observed changes
- Wed Nov 25 2026 09:42:00 GM +0000 (Coordinated Universal Time) — released 8.1.11 → 8.1.12
- Wed Nov 04 2026 12:30:44 GM +0000 (Coordinated Universal Time) — released 8.1.10 → 8.1.11
- Wed Oct 28 2026 18:27:32 GM +0000 (Coordinated Universal Time) — released 8.1.8 → 8.1.10
Related packages
- pestphp/pest-plugin-profanity
- sebastian/git-state
- rector/rector
- pestphp/pest-plugin-laravel
- doctrine/collections
- sebastian/file-filter
- composer/ca-bundle
- doctrine/persistence
- sebastian/resource-operations
- php-http/httplug
- laravel/agent-detector
- livewire/livewire
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/symfony/html-sanitizer) [](https://vigia.coredls.cloud/packagist/symfony/html-sanitizer) [](https://vigia.coredls.cloud/packagist/symfony/html-sanitizer)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/symfony/html-sanitizer
GET https://vigia.coredls.cloud/v1/packages/packagist/symfony/html-sanitizer/versions/{version}