Re: How about a saveXHTML for the DOM?

From: Date: Fri, 10 Apr 2009 22:35:18 +0000
Subject: Re: How about a saveXHTML for the DOM?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291359@lists.php.net to get a copy of this message
Raymond Irving wrote:
Thanks for the feedback Michael. I will look into your suggesstions. Is there an option on the DOMDocument that we can set to not have saveXML() append 
 to the end of the tags? This is normally the case if the html content was loaded using loadHTMLFile()
I think I've seen that appear in textarea as well - I believe it has to do with the libebreaks of the application that created the file (or in case of textarea from a form, the line break convention of the browser). Does it happen when you run sed -i 's/\r//g' file.html to remove the DOS carriage return from the line breaks? That would be my guess.

« previous php.general (#291359) next »