<\/style>/', '', $content_buffer); //Removed trbidi attribute #3687 $content_buffer = str_replace('trbidi="on"', '', $content_buffer); $content_buffer = str_replace("trbidi='on'", '', $content_buffer); $content_buffer = str_replace('action=""', 'action-xhr="#"', $content_buffer); //Picture-tag is not working in AMP #4051 if(preg_match('/<\/amp-img>(.*?)<\/picture>/s', $content_buffer)){ $content_buffer = preg_replace('/<\/amp-img>(.*?)<\/picture>/s', '$3', $content_buffer); } if(class_exists('SiteOrigin_Widgets_Bundle')){ $content_buffer = preg_replace('//', '', $content_buffer); } if(preg_match('/