Crawler::addHtmlContent()

addHtmlContent(string $content, string $charset = 'UTF-8')

Adds an HTML content to the list of nodes.

The libxml errors are disabled when the content is parsed.

If you want to get parsing errors, be sure to enable internal errors via libxmluseinternalerrors(true) and then, get the errors via libxmlgeterrors(). Be sure to clear errors with libxmlclear_errors() afterward.

Parameters

string $content The HTML content
string $charset The charset
doc_Symfony
2016-10-28 06:12:30
Comments
Leave a Comment

Please login to continue.