We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This test should pass but it fails with <!---->foobar not beeing equal to 'foobar'
<!---->foobar
'foobar'
public function testTextWithCommentsInStyle() { $html = '<html><head><meta charset="utf-8"><style><!----></style></head><body><div><p>foo</p><p>bar</p></div></body></html>'; $element = new HtmlDomParser($html); static::assertSame('foobar', $element->text()); static::assertSame('foobar', $element->plaintext); }
I suppose minutes
It seems to be this special combination of meta, style and comment which leads to the issue. Outlook will generate this kind of html in its emails ;)
charset="utf-8"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is this feature about (expected vs actual behaviour)?
This test should pass but it fails with
<!---->foobar
not beeing equal to'foobar'
Does it take minutes, hours or days to fix?
I suppose minutes
Additional notes
It seems to be this special combination of meta, style and comment which leads to the issue. Outlook will generate this kind of html in its emails ;)
charset="utf-8"
from meta tag fixes testThe text was updated successfully, but these errors were encountered: