-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 5.3.1
-
Fix Version/s: 5.3.2
-
Component/s: Blogs / Websites / Wikis (deprecated)
-
Impact type:API added
When the same document field can contain text, html or wiki markup, we should be able to configure conditions on sanitizer.
=> for a webpage, you may want to only sanitize the webpages that are using HTML.
<sanitizer name="foo">
<field filter="webp:isRichtext" filterValue="true">webp:content</field>
</sanitizer>
</code>
In this example the field webp:content will be sanitized only when
the String representation of the webp:isRichtext is "true".