Constructor.
strictness to apply
listener for sanitizing events
Readonly
listenerlistener for sanitizing events
Readonly
strictnessstrictness to apply
Sanitizes the given document, so that it could be stored on CoreMedia CMS with enabled CoreMedia Rich Text 1.0 validation.
Any severe issues reported to the listener should be addressed by adapting the data-processing configuration accordingly.
document to sanitize
document (as is, but possibly with modifications applied) or
false
if documentElement
does not match requirements.
Sanitizes CoreMedia Rich Text 1.0, so that it can be stored at CoreMedia CMS without validation issues. Note that less strict checking may violate this goal.