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

Reply via email to