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.

Constructors

Properties

Methods

Constructors

Properties

listener: SanitationListener = silentSanitationListener

listener for sanitizing events

strictness: Strictness = Strictness.STRICT

strictness to apply

Methods

  • 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.

    Type Parameters

    • T extends Document

    Parameters

    • document: T

      document to sanitize

    Returns false | T

    document (as is, but possibly with modifications applied) or false if documentElement does not match requirements.