]> git.sesse.net Git - xml-template/commitdiff
Fix the oddest PHP5 bug in the world...
authorsgunderson@bigfoot.com <>
Sat, 26 Apr 2008 16:23:21 +0000 (18:23 +0200)
committersgunderson@bigfoot.com <>
Sat, 26 Apr 2008 16:23:21 +0000 (18:23 +0200)
php5/xml-template.php

index 5defe73b01e041b45fcd7134cf5e451d5d444419..ed1e8f85529fc389120184c8023dee97a516518a 100644 (file)
@@ -202,7 +202,9 @@ function own_clone_element($node, $doc)
                        } else {
                                $attr2 = $doc->createAttribute($attr->localName);
                        }
                        } 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);
                }
        }
                        $newnode->appendChild($attr2);
                }
        }