html - Error with php simple_html_dom parser -


php experts.

i found error while using simple_html_dom class.

my html strings have parsed this.

<!doctype html> <html lang="en"> <head> <title>y-shaped zno nanobelts driven twinned</title>  <meta name="site" content="reports"/>  <meta name="description" content="description twinned planes {11&#"/>  <meta name="image" content="https://cdn.sstatic.net/sites/stackoverflow/img/apple-touch-icon.png?v=c78bd457575a"/>   ...   </body> </html> 

i tried meta tag named image find("meta[name=image]"), couldn't.

i checked reason , found because of characters '&#' in middle of above line of it.

<meta name="description" content="description twinned planes {11&#"/> 

i got content attribute of meta tag that

 description twinned planes {11&#"/>   <meta name="image" .... 

so in case, should letting simple_html_dom parse html correctly?

otherwise there other library parse html correctly?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -