From 472833b99c2b3a320f5da3a4f5c3946408018af8 Mon Sep 17 00:00:00 2001 From: Lukas Ribi Date: Sun, 20 Dec 2020 14:41:28 +0100 Subject: [PATCH 1/2] Extended the configuration example in the README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e3a1c17..a402365a 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,12 @@ exercise_html_purifier: custom: config: Core.Encoding: 'ISO-8859-1' + HTML.Allowed: 'a[href|target],p,br' + Attr.AllowedFrameTargets: '_blank' ``` In this example, a `exercise_html_purifier.custom` service will also be defined, -which includes both the cache and encoding options. Available configuration +which includes cache, encoding, HTML tags and attribute options. Available configuration options may be found in HTMLPurifier's [configuration documentation][]. **Note:** If you define a `default` profile but omit `Cache.SerializerPath`, it From 5018b8a35ceda82fb4572bca6a3b45e6944deb04 Mon Sep 17 00:00:00 2001 From: Lukas Ribi Date: Sat, 26 Dec 2020 18:20:10 +0100 Subject: [PATCH 2/2] Update README.md with suggestion Co-authored-by: Jules Pietri --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a402365a..25af43e4 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ exercise_html_purifier: ``` In this example, a `exercise_html_purifier.custom` service will also be defined, -which includes cache, encoding, HTML tags and attribute options. Available configuration +which includes cache, encoding, HTML tags and attributes options. Available configuration options may be found in HTMLPurifier's [configuration documentation][]. **Note:** If you define a `default` profile but omit `Cache.SerializerPath`, it