Download the PHP package tobento/app-html-sanitizer without Composer
On this page you can find all versions of the php package tobento/app-html-sanitizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobento/app-html-sanitizer
More information about tobento/app-html-sanitizer
Files in tobento/app-html-sanitizer
Package app-html-sanitizer
Short Description App html sanitizer to sanitize untrusted HTML code.
License MIT
Homepage https://www.tobento.ch
Informations about the package app-html-sanitizer
App HTML Sanitizer
App HTML Sanitizer to sanitize untrusted HTML code.
Table of Contents
- Getting Started
- Requirements
- Documentation
- App
- Sanitizer Boot
- Sanitizer Config
- Basic Usage
- Sanitizing HTML
- Sanitizing HTML in Views
- Sanitizing HTML using Function
- Available Sanitizers
- Purifier Sanitizer
- Adding Sanitizers
- Credits
Getting Started
Add the latest version of the app HTML Sanitizer project running this command.
Requirements
- PHP 8.0 or greater
Documentation
App
Check out the App Skeleton if you are using the skeleton.
You may also check out the App to learn more about the app in general.
Sanitizer Boot
The sanitizer boot does the following:
- installs and loads html sanitizer config file
- implements html sanitizer interfaces
Sanitizer Config
The configuration for the sanitizer is located in the file at the default App Skeleton config location where you can configure sanitizers for your application.
Basic Usage
Sanitizing HTML
Using Specific Sanitizer
Sanitizing HTML in Views
If you have installed the App View, you may use the and view macro to sanitize untrusted HTML:
Sanitizing HTML using Function
Available Sanitizers
Purifier Sanitizer
This HTML sanitizer uses the Ezyang HTML Purifier.
In the Sanitizer Config file, you can configure this sanitizer using the :
Visit the Ezyang HTML Purifier for more information.
Adding Sanitizers
In addition to adding sanitizers in the Sanitizer Config file, you may adding them using a boot:
Credits
- Tobias Strub
- All Contributors
All versions of app-html-sanitizer with dependencies
tobento/app Version ^1.0.7
tobento/app-migration Version ^1.0
tobento/service-filesystem Version ^1.0
ezyang/htmlpurifier Version ^4.18