RE: [PEAR-DEV] XML_Functions

From: Date: Wed, 31 Mar 2004 15:00:12 +0000
Subject: RE: [PEAR-DEV] XML_Functions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26895@lists.php.net to get a copy of this message
Hi, > The output is principaly for generating HTML pages but can be used for > make an XML file. > For make a valid HTML page, i have never heard to replace < > > with their > entities equivalent.. have you a link about this please ? Then you package should be named HTML_Functions, not XML_. I think that XHTML will require you to use entities, but I'm not sure about that... At least you will have to write <div title="This contains &quot;quotes&quot;"></div>... > Why ? because this method make a valid code. > It's impossible to forget an </tag>, or the end / of <br /> or cross > close tags like this : <b><i>Hello</b></i> I think you can easily break HTML, as your methods do not validate the data you pass. You could easily create <img>foo</img>, which is no valid HTML. PEAR already has some packages that help you creating more complex elements, like tables. I would have no use for another package that creates tags (as I'm using XML_Util), but maybe other people like your approach. Let's wait and see... Stephan

« previous php.pear.dev (#26895) next »