Re: Parsing HTML href-Attribute

From: Date: Fri, 16 Jan 2009 19:02:10 +0000
Subject: Re: Parsing HTML href-Attribute
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-286515@lists.php.net to get a copy of this message
On Fri, Jan 16, 2009 at 1:59 PM, mike <mike503@gmail.com> wrote: > On Fri, Jan 16, 2009 at 10:58 AM, mike <mike503@gmail.com> wrote: > >> only if it's parseable xml :) >> > > Or not! Ignore me. Supposedly this can handle HTML too. I'll have to > try it next time. Normally I wind up having to use tidy to scrub a > document and try to get it into xhtml and then use simplexml. I wonder > how well this would work with [crappy] HTML input. > Great if you use @. ;) I'd try to make sure all of my input was stored as proper x/html in the db before I really tried parsing it, so I'm not sure of his setup, but I use getElementsByTagName all the time and love it.

« previous php.general (#286515) next »