RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
     * Construct a new instance of HtmlSanitizer
     * @param options Options for HtmlSanitizer
     */
Construct a new instance of HtmlSanitizer
@param options Options for HtmlSanitizer
Construct a new instance of HtmlSanitizer @param options Options for HtmlSanitizer
function HtmlSanitizer(options) {
        options = options || {};
        this.elementCallbacks = cloneObject_1.cloneObject(options.elementCallbacks);
        this.styleCallbacks = getAllowedValues_1.getStyleCallbacks(options.styleCallbacks);
        this.attributeCallbacks = cloneObject_1.cloneObject(options.attributeCallbacks);
        this.allowedTags = getAllowedValues_1.getAllowedTags(options.additionalAllowedTags);
        this.allowedAttributes = getAllowedValues_1.getAllowedAttributes(options.additionalAllowAttributes);
        this.defaultStyleValues = getAllowedValues_1.getDefaultStyleValues(options.additionalDefaultStyleValues);
        this.additionalGlobalStyleNodes = options.additionalGlobalStyleNodes || [];
        this.allowPreserveWhiteSpace = options.allowPreserveWhiteSpace;
    }
function HtmlSanitizer ( options ) { options = options || { } ; this . elementCallbacks = cloneObject_1 . cloneObject ( options . elementCallbacks ) ; this . styleCallbacks = getAllowedValues_1 . getStyleCallbacks ( options . styleCallbacks ) ; this . attributeCallbacks = cloneObject_1 . cloneObject ( options . attributeCallbacks ) ; this . allowedTags = getAllowedValues_1 . getAllowedTags ( options . additionalAllowedTags ) ; this . allowedAttributes = getAllowedValues_1 . getAllowedAttributes ( options . additionalAllowAttributes ) ; this . defaultStyleValues = getAllowedValues_1 . getDefaultStyleValues ( options . additionalDefaultStyleValues ) ; this . additionalGlobalStyleNodes = options . additionalGlobalStyleNodes || [ ] ; this . allowPreserveWhiteSpace = options . allowPreserveWhiteSpace ; }
Construct a new instance of HtmlSanitizer
 @param options Options for HtmlSanitizer
Construct a new instance of HtmlSanitizer @param options Options for HtmlSanitizer