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


'WEB' 카테고리의 다른 글

리눅스 문자셋(charset) 설정  (0) 2018.05.17
PHP로 xml과 json 파싱  (0) 2018.05.17
PHP 메모리 부족  (0) 2018.05.14
날짜 계산(어제, 내일, 일주일 전, 한달 전...)  (0) 2018.05.14
[PHP] Define and Const  (0) 2018.05.13

+ Recent posts