Get Comments with PHP Simple HTML DOM Parser

前端 未结 1 866
轻奢々
轻奢々 2021-01-15 06:22

I\'m working with PHP Simple HTML DOM Parser.

I was wondering if it is possible to extract the HTML comments ().

Can you?

相关标签:
1条回答
  • 2021-01-15 06:55

    Directly from their docs:

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

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

    0 讨论(0)
提交回复
热议问题