更新时间:2022-10-18 19:45:48
直接来自他们的文档:
//查找所有评论(<! ..-->)block
$ es = $ html-> find('comment');
http://simplehtmldom.sourceforge.net/manual.htm
I'm working with PHP Simple HTML DOM Parser.
I was wondering if it is possible to extract the HTML comments (<!-- -->
).
Can you?
Directly from their docs:
// Find all comment (<!--...-->) blocks
$es = $html->find('comment');