DEFAULT_ARGS = array( 'amp_allowed_tags' => AMP_Allowed_Tags_Generated::get_allowed_tags(), 'amp_globally_allowed_attributes' => AMP_Allowed_Tags_Generated::get_allowed_attributes(), 'amp_layout_allowed_attributes' => AMP_Allowed_Tags_Generated::get_layout_attributes(), ); parent::__construct( $dom, $args ); /** * Prepare whitelists */ $this->allowed_tags = $this->args['amp_allowed_tags']; $this->globally_allowed_attributes = $this->args['amp_globally_allowed_attributes']; $this->layout_allowed_attributes = $this->args['amp_layout_allowed_attributes']; } /** * Sanitize the