tags:

views:

16

answers:

1

i have to modify dom. i.e. remove few elements and add few. kindly recommend any php library that can parse and modify DOM.

+3  A: 

PHP Simple HTML DOM Parser

- 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.

Or official:

Document Object Model

Sarfraz