forked from Exercise/HTMLPurifierBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCHANGELOG
More file actions
41 lines (37 loc) · 1.63 KB
/
CHANGELOG
File metadata and controls
41 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Version 3.0 (12/2019)
* [BC break] Dropped support for PHP 5.x. PHP 7.1 minimum required.
* [BC break] Added type hints for scalar and return type hints where possible.
* [BC Break] The bundle configuration has changed:
```yaml
# Before
exercise_html_purifier:
default:
Cache.SerializerPath: '%kernel.cache_dir%/htmlpurifier'
# ...
custom:
Core.Encoding: 'ISO-8859-1'
# After
exercise_html_purifier:
default_cache_serializer_path: '%kernel.cache_dir%/htmlpurifier'
html_profiles:
default:
# ...
custom:
config:
Core.Encoding: 'ISO-8859-1'
```
* Added an `HTMLPurifierConfigFactory` to handle cache and custom definitions.
* Refactored `SerializerCacheWarmer` to preload each profile configuration
## Version 2.0 (08/2018)
* Added compatibility for Symfony 5 and Twig 3
* Updated minimum requirement of Twig to 1.35 and 2.4 to support runtime
* [BC break] Dropped support for Symfony 2. Symfony 3.4 minimum required.
* [BC break] Removed classes parameters.
* [BC break] Removed the form data transformer.
* Added an `HTMLPurifierTextTypeExtension` to add `purify_html` and
`purify_html_profile` options to all `TextType` children.
* Added an `HTMLPurifierListener` to purify submitted form data.
* Added an `HTMLPurifiersRegistryInterface` to lazy load purifiers by profile.
* Added a Twig `HTMLPurifierRuntime` to lazy load purifiers in templates.
* Added a pass to use custom `\HTMLPurifier` classes as custom profiles using
a new `exercise.html_purifier` tag.