WEB

PHP Simple HTML DOM Parser

remoted 2018. 5. 17. 01:54
728x90

PHP Simple HTML DOM Parser

Description, Requirement & Features

  • A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way!
  • Require PHP 5+.
  • Supports invalid HTML.
  • Find tags on an HTML page with selectors just like jQuery.
  • Extract contents from HTML in a single line.

Download & Documents

Quick Start


// Dump contents (without tags) from HTML
echo file_get_html('http://www.google.com/')->plaintext

Feedback


Author: S.C. Chen (me578022@gmail.com)
Original idea is from Jose Solorzano's HTML Parser for PHP 4
Contributions by: Yousuke Kumakura (Attribute Filters)

SourceForge.net Logo