/home/vianto5/.trash/cititower.mx/wp-content/plugins/siteorigin-panels/compat
NameSizeModeActions
js/-0755rm
acf-widgets.php41380644editdlrm
amp.php2970644editdlrm
gravity-forms.php6620644editdlrm
jetpack.php13350644editdlrm
layout-block.php91950644editdlrm
lazy-load-backgrounds.php20190644editdlrm
pagelayer.php12520644editdlrm
polylang.php3060644editdlrm
rank-math.php5040644editdlrm
seo.php8880644editdlrm
seopress.php16480644editdlrm
vantage.php14040644editdlrm
widget-options.php10590644editdlrm
yikes.php2040644editdlrm
yoast.php26160644editdlrm
Edit: /home/vianto5/.trash/cititower.mx/wp-content/plugins/siteorigin-panels/compat/seopress.php (1648B)
generate_panels_preview( $id, $page_builder_data ); // To help with consistent results, we strip out certain elements. if ( class_exists( 'DOMDocument' ) && class_exists( 'DOMXPath' ) ) { $whitelist = [ 'p', 'a', 'img', 'caption', 'br', 'blockquote', 'cite', 'em', 'strong', 'i', 'b', 'q', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td' ]; $dom = new DOMDocument(); $dom->loadHTML( $content ); $xpath = new DOMXPath( $dom ); $elements = $xpath->query( '//iframe | //script | //style | //link' ); foreach ( $elements as $element ) { $element->parentNode->removeChild( $element ); } $dom->removeChild( $dom->doctype ); // Remove elements that are not in the whitelist. $elements = $xpath->query( '//*' ); foreach ( $elements as $element ) { if ( ! in_array( $element->nodeName, $whitelist ) ) { $content = $dom->createDocumentFragment(); while ( $element->childNodes->length > 0 ) { $content->appendChild( $element->childNodes->item( 0 ) ); } $element->parentNode->replaceChild( $content, $element ); } } $content = $dom->saveHTML(); } } } return $content; } add_action( 'seopress_dom_analysis_get_post_content', 'siteorigin_panels_seopress_compat', 15, 2 );