Skip to content

Commit f697c34

Browse files
authored
Extended the configuration example in the README (#80)
1 parent 852d00c commit f697c34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ exercise_html_purifier:
7575
custom:
7676
config:
7777
Core.Encoding: 'ISO-8859-1'
78+
HTML.Allowed: 'a[href|target],p,br'
79+
Attr.AllowedFrameTargets: '_blank'
7880
```
7981

8082
In this example, a `exercise_html_purifier.custom` service will also be defined,
81-
which includes both the cache and encoding options. Available configuration
83+
which includes cache, encoding, HTML tags and attributes options. Available configuration
8284
options may be found in HTMLPurifier's [configuration documentation][].
8385

8486
**Note:** If you define a `default` profile but omit `Cache.SerializerPath`, it

0 commit comments

Comments
 (0)