paquettg / php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
MIT License
2.37k stars 461 forks source link

Data between curly brackets unable to be displayed #241

Closed JabbaTheGutt closed 4 years ago

JabbaTheGutt commented 4 years ago

Hello,

I am aware that curly brackets are used within blade on Laravel, however, when trying to parse pages that contain curly brackets { }, the curly brackets and the data between them disappear.

Is this purely a limitation of using the PHP HTML Parser with Laravel, or am I doing something wrong?

Thanks, Jake

JabbaTheGutt commented 4 years ago

Just a little more to this, I am using Guzzle to retrieve the page, when I print the contents from Guzzle I can see the data between { }, it's only when I load it in to DOM that they disappear it seems.

JabbaTheGutt commented 4 years ago

Turns out I needed to setCleanupInput to false - all trusted sources.