From: sgunderson@bigfoot.com <> Date: Sat, 26 Apr 2008 16:23:21 +0000 (+0200) Subject: Fix the oddest PHP5 bug in the world... X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=a65b22fc1dd7fe224ec09df1c4846334c8ad1ab9 Fix the oddest PHP5 bug in the world... --- diff --git a/php5/xml-template.php b/php5/xml-template.php index 5defe73..ed1e8f8 100644 --- a/php5/xml-template.php +++ b/php5/xml-template.php @@ -202,7 +202,9 @@ function own_clone_element($node, $doc) } else { $attr2 = $doc->createAttribute($attr->localName); } - $attr2->value = $attr->value; + + # You've got to be kidding me... + $attr2->value = htmlentities($attr->value); $newnode->appendChild($attr2); } }