From adf318abecabf21d211427f59ac4dea02bb44ff9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 3 Mar 2017 14:59:13 +0100 Subject: [PATCH] wrap more fields with CData --- utils/xmldump.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/xmldump.php b/utils/xmldump.php index c055764db..353a9a376 100644 --- a/utils/xmldump.php +++ b/utils/xmldump.php @@ -276,7 +276,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */ if($attributes = $document->getAttributes()) { foreach($attributes as $attribute) { $attrdef = $attribute->getAttributeDefinition(); - echo $indent." getID()."\">".$attribute->getValue()."\n"; + echo $indent." getID()."\">".wrapWithCData($attribute->getValue())."\n"; } } @@ -332,7 +332,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */ if($attributes = $version->getAttributes()) { foreach($attributes as $attribute) { $attrdef = $attribute->getAttributeDefinition(); - echo $indent." getID()."\">".$attribute->getValue()."\n"; + echo $indent." getID()."\">".wrapWithCData($attribute->getValue())."\n"; } } if($statuslog = $version->getStatusLog()) {