Re: textarea new line to mysql database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux