transform_html_start_tag( $this->dom ); $this->transform_a_tags( $this->dom ); $this->use_semantic_heading_tags( $this->dom ); $this->add_publisher_logo( $this->dom, $this->args['publisher_logo'] ); $this->add_publisher( $this->dom, $this->args['publisher'] ); $this->add_poster_images( $this->dom, $this->args['poster_images'] ); // This needs to be called before use_semantic_heading_tags() because it relies on the style attribute. $this->deduplicate_inline_styles( $this->dom ); $this->add_video_cache( $this->dom, $this->args['video_cache'] ); $this->remove_blob_urls( $this->dom ); $this->sanitize_srcset( $this->dom ); $this->sanitize_amp_story_page_outlink( $this->dom ); $this->remove_page_template_placeholder_images( $this->dom ); $this->sanitize_title_and_meta_description( $this->dom, $this->args['title_tag'], $this->args['description'] ); } }