2

I'm working with PHP Simple HTML DOM Parser.

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

Can you?

1 Answer 1

4

Directly from their docs:

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

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

Sign up to request clarification or add additional context in comments.

1 Comment

The link provided doesn't work anymore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.