shweshi / OpenGraph

A Laravel package to fetch Open Graph data of a website.
https://opengraph.shashi.dev
MIT License
154 stars 29 forks source link

Log errors from DOMDocument::loadHTML() using libxml_get_errors() #65

Closed alinmiron closed 4 years ago

alinmiron commented 4 years ago

added fourth argument which can be used to pass additional options to LoadHTML() method, including options for suppressing warnings and errors; loadHTML() second argument is 0 (LIBXML_ERR_NONE flag)

64

shweshi commented 4 years ago

Fix #64

shweshi commented 4 years ago

Thanks @alinmiron for the PR. Released a new version with the changes.