Re: textarea new line to mysql database

From: Date: Fri, 15 May 2009 16:47:22 +0000
Subject: Re: textarea new line to mysql database
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-292641@lists.php.net to get a copy of this message
tedd wrote:
Also, one can generate validation errors using "<br />" because there are three different varieties of the tag, namely "<br>", "<br />", and "<br/>" -- all of which can be used in different settings. I don't remember which doctypes go with which version (xhtml requires />), but I've run into that problem before.
That's where DOMDocument helps - saveHTML() produces valid html break, saveXML() produces valid xhtml break, all from the same DOMDocument object.

« previous php.general (#292641) next »