Skip to content
New issue

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

HTML5 and SVG breaks use of DomDocument::loadHTML() #16

Open
jordanade opened this issue Jan 18, 2024 · 0 comments
Open

HTML5 and SVG breaks use of DomDocument::loadHTML() #16

jordanade opened this issue Jan 18, 2024 · 0 comments

Comments

@jordanade
Copy link

jordanade commented Jan 18, 2024

Parsing HTML5 (i.e., tags like <header>) or documents with a <svg> will break DomDocument::loadHTML(). The fix is to add libxml_use_internal_errors(true); before using DomDocument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant