diff options
author | xue <> | 2008-01-23 01:49:02 +0000 |
---|---|---|
committer | xue <> | 2008-01-23 01:49:02 +0000 |
commit | f423f552e01310ae0338d1c4e413c1dc75ea10d5 (patch) | |
tree | 5094d2a32672d8b60eaccddf2b3b7d7af8b0728d /framework/Xml | |
parent | d9d790345d807e09bf6732ea57a34be7f58292ae (diff) |
fixed an encoding issue in TXmlDocument.
Diffstat (limited to 'framework/Xml')
-rw-r--r-- | framework/Xml/TXmlDocument.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php index 0b44214e..d4561734 100644 --- a/framework/Xml/TXmlDocument.php +++ b/framework/Xml/TXmlDocument.php @@ -222,7 +222,7 @@ class TXmlElement extends TComponent else return $prefix."<{$this->_tagName}$attr />"; } - + /** * Magic-method override. Called whenever this element is used as a string. * <code> @@ -248,9 +248,9 @@ class TXmlElement extends TComponent '<'=>'<', '&'=>'&', '"'=>'"', - "\r"=>'
', + "\r"=>'
', "\t"=>'	', - "\n"=>'
')); + "\n"=>'
')); } } @@ -433,7 +433,7 @@ class TXmlDocument extends TXmlElement $encoding=empty($this->_encoding)?'':' encoding="'.$this->_encoding.'"'; return "<?xml{$version}{$encoding}?>\n".$this->toString(0); } - + /** * Magic-method override. Called whenever this document is used as a string. * <code> |