【问题标题】:Get Comments with PHP Simple HTML DOM Parser使用 PHP Simple HTML DOM Parser 获取评论
【发布时间】:2012-08-12 06:07:57
【问题描述】:

我正在使用 PHP Simple HTML DOM Parser。

我想知道是否可以提取 HTML cmets (<!-- -->)。

你可以吗?

【问题讨论】:

    标签: php parsing dom html-parsing


    【解决方案1】:

    直接来自他们的文档:

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

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

    【讨论】:

      猜你喜欢
      • 2012-04-08
      • 1970-01-01
      • 1970-01-01
      • 2016-04-21
      • 1970-01-01
      • 2017-06-08
      • 1970-01-01
      • 1970-01-01
      • 2016-04-09
      相关资源
      最近更新 更多