php - Parse HTML without xpath -
i'm trying create simple tool parse html files.
specifically, need name
attributes out of div
tags.
my html string varies , don't have control on it, if try , use xpath tend errors html not 100% written correctly.
any ideas?
thanks,
there great class called php simple html dom parser on http://simplehtmldom.sourceforge.net/
works fine invalid html, needs lot of memory parsing long html-files.
Comments
Post a Comment