We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddb853 commit 73fc21eCopy full SHA for 73fc21e
src/HtmlParser.php
@@ -43,7 +43,7 @@ public function parseHtml( string $html ): DOMDocument {
43
44
$exception = null;
45
foreach ( $errors as $error ) {
46
- if ( str_starts_with( $error->message, 'Tag template invalid' ) ) {
+ if ( str_starts_with( $error->message, 'Tag ' ) && str_ends_with( $error->message, " invalid\n" ) ) {
47
continue;
48
}
49
$exception = new Exception( $error->message, $error->code, $exception );
0 commit comments