Changelogs: Decoda v4.0.0-beta
A new version of Decoda has been released, version 4.0.0-beta. Please download the new tag or view the documentation. If you have any questions, be sure to send me an email or comment on this post. If you run into any problems, be sure to report an issue on the Github repository.
Version: 4.0.0-beta
Tested On: PHP 5.3
Requires: PHP 5.3
Commit Hash: f960a1b4f4064d48894f4f7438cce7eed3a9381c
Changes:
- Refactored for PHP 5.3 namespaces and moved all classes to namespaced folders
- Added unit tests for all classes
- Added configuration paths to define custom lookup locations
- Added a new option for Filters: childrenBlacklist and renamed children to childrenWhitelist
- Added a new option for Filters: persistContent
- Added a new config for QuoteFilters: dateFormat
- Added a new config for BlockFilters: spoilerToggle
- Added a new config for UrlFilter: protocols
- Added a new config for CensorHook: suffix
- Added a new configs for EmoticonHook: path, extension
- Added support for self closing tags:
- Added a global blacklist to Decoda using Decoda::blacklist()
- Fixed incorrectly nested tags
- Fixed child and parent hierarchies
- Fixed CRLF conversion problems
- Merged Filter options alias and map into mapAttributes
- Moved all class constants to Decoda base
- Refactored all Filter regex patterns
- Refactored all the template HTML classes
- Removed all global constants except for DECODA
- Removed Decoda::nl2br()
- Removed Filter option testNoDefault
- Renamed Filter option key to tag
- Renamed Filter option tag to htmlTag
- Renamed Filter option type to displayType
- Renamed Filter option allowed to allowedTypes
- Renamed Decoda::disableFilters() to resetFilters()
- Renamed Decoda::disableHooks() to resetHooks()
- Updated doc blocks and examples
- Updated EmailFilter and UrlFilter to use filter_var()
- Updated Decoda to throw exceptions when necessary