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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -