且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用PHP简单的HTML DOM解析器获取评论

更新时间: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');

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