From a65b22fc1dd7fe224ec09df1c4846334c8ad1ab9 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sat, 26 Apr 2008 18:23:21 +0200 Subject: [PATCH] Fix the oddest PHP5 bug in the world... --- php5/xml-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- 2.39.2