diff --git a/includes/class-gistpress.php b/includes/class-gistpress.php index c92acba..1b4140a 100644 --- a/includes/class-gistpress.php +++ b/includes/class-gistpress.php @@ -463,6 +463,8 @@ public function process_gist_html( $html, array $args ) { $html = '' . $html; $dom = new DOMDocument(); + // Suppress warnings for invalid tags. + libxml_use_internal_errors(true); $dom->loadHTML( $html, LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED ); $lines = $dom->getElementsByTagName( 'tr' );