Get regex pattern for matching HTML attributes from a given tag name.
Get mapping of AMP component names to AMP script URLs.
Get data that is returned in validate responses.
Reassemble a style string that can be used in a 'style' attribute.
Parse a style string into an associative array of style attributes.
Set attributes to node's parent element according to layout.
Set AMP attributes.
Get data-amp-* values from the parent node 'figure' added by editor block.
Cleans up artifacts after the removal of an attribute node.
Prepare validation error.
Check whether or not sanitization should occur in response to validation error.
Removes an invalid attribute of a node.
Removes an invalid child of a node.
Check whether a certain node should be exempt from validation.
Check whether a node is exempt from validation during dev mode.
Check whether the document of a given node is in dev mode.
Decide if we should remove a src attribute if https is required.
Adds or appends key and value to list of attributes
Sets the layout, and possibly the 'height' and 'width' attributes.
Determine if an attribute value is empty.
Sanitizes a CSS dimension specifier while being sensitive to dimension context.
Get HTML body as DOMElement from Dom\Document received by the constructor.
Return array of values that would be valid as an HTML
Sanitize the HTML contained in the DOMDocument received by the constructor
Run logic before any sanitizers are run.
Get mapping of HTML selectors to the AMP component selectors which they may be converted into.
Add filters to manipulate output during output buffering before the DOM is constructed.