Bcl00
Bcl00

Reputation: 207

Get Comments with PHP Simple HTML DOM Parser

I'm working with PHP Simple HTML DOM Parser.

I was wondering if it is possible to extract the HTML comments (<!-- -->).

Can you?

Upvotes: 2

Views: 3084

Answers (1)

Paul Dessert
Paul Dessert

Reputation: 6389

Directly from their docs:

// Find all comment (<!--...-->) blocks 
$es = $html->find('comment');

http://simplehtmldom.sourceforge.net/manual.htm

Upvotes: 4

Related Questions