PHP Package: typo3/html-sanitizer

A powerful PHP library for sanitizing HTML content to ensure SEO optimization and security for web applications.

Current Version: 2.2.0
Last Updated: 2024-07-12
PHP Requirement: ^7.2 || ^8.0
Dependencies:
phpunit/phpunit
php-fig/log
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The HTML Sanitizer library by TYPO3 is a comprehensive tool designed to sanitize and filter HTML content effectively, enhancing SEO performance and ensuring secure web applications. With a focus on flexibility and performance, this library offers robust features for developers to manage and sanitize HTML content efficiently.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.2.0

Download Download v2.2.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/typo3/html-sanitizer/2.2.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.2.2/loader.php';
require_once 'libs/php-fig/log/3.0.2/loader.php';

use TYPO3\HtmlSanitizer\HtmlSanitizer;
use TYPO3\HtmlSanitizer\Parser\ParserInterface;

$obj = new HtmlSanitizer();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.