joomla / filter
Joomla Filter Package
Fund package maintenance!
joomla
community.joomla.org/sponsorship-campaigns.html
Installs: 648 400
Dependents: 8
Suggesters: 1
Security: 1
Stars: 12
Watchers: 12
Forks: 20
Open Issues: 5
Type:joomla-package
Requires
- php: ^7.2.5|~8.0.0|~8.1.0
- joomla/string: ^2.0
Requires (Dev)
- joomla/coding-standards: ^3.0@dev
- joomla/language: ^2.0
- phpunit/phpunit: ^8.5|^9.0
Suggests
- joomla/language: Required only if you want to use `OutputFilter::stringURLSafe`.
Conflicts
- joomla/language: <2.0
- dev-3.x-dev / 3.0.x-dev
- dev-2.0-dev / 2.0.x-dev
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-rc
- 2.0.0-beta5
- 2.0.0-beta4
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0
- 1.0-beta3
- 1.0-beta2
- 1.0-beta
- 1.0-alpha
- dev-2.0-objectHtmlSafe
- dev-2.0-outputfilter-stringurlsafe
- dev-php-8.2
- dev-1.x-dev
This package is auto-updated.
Last update: 2023-06-05 19:58:45 UTC
README
Installation via Composer
Add "joomla/filter": "~2.0.*@dev"
to the require block in your composer.json and then run composer install
.
{ "require": { "joomla/filter": "~2.0" } }
Alternatively, you can simply run the following from the command line:
composer require joomla/filter "~2.0"
If you want to include the test sources, use
composer require --prefer-source joomla/filter "~2.0"
Note that the Joomla\Language
package is an optional dependency and is only required if the application requires the use of OutputFilter::stringURLSafe
.
Upgrades from 1 to 2
Note the InputFilter static class constants have been renamed:
Before | After |
---|---|
InputFilter::TAGS_WHITELIST | InputFilter::ONLY_ALLOW_DEFINED_TAGS |
InputFilter::TAGS_BLACKLIST | InputFilter::ONLY_BLOCK_DEFINED_TAGS |
InputFilter::ATTR_WHITELIST | InputFilter::ONLY_ALLOW_DEFINED_ATTRIBUTES |
InputFilter::ATTR_BLACKLIST | InputFilter::ONLY_BLOCK_DEFINED_ATTRIBUTES |
The public property InputFilter::tagBlacklist
has been renamed to InputFilter::blockedTags
. Similarly
InputFilter::attrBlacklist
has been renamed to InputFilter::blockedAttributes
All code usage of these properties remains unchanged.