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 0b6d881 commit aace72cCopy full SHA for aace72c
src/PHPHtmlParser/Dom.php
@@ -88,6 +88,7 @@ class Dom
88
'base',
89
'embed',
90
'spacer',
91
+ '!--'
92
];
93
94
/**
@@ -506,7 +507,7 @@ protected function parseTag()
506
507
508
// attributes
509
while ($this->content->char() != '>' &&
- $this->content->char() != '/') {
510
+ $this->content->char() != '/' && $tag !== '!--') {
511
$space = $this->content->skipByToken('blank', true);
512
if (empty($space)) {
513
$this->content->fastForward(1);
0 commit comments