]> git.sesse.net Git - xml-template/blobdiff - php5/xml-template.php
Fix the oddest PHP5 bug in the world...
[xml-template] / 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);
                        }
-                       $attr2->value = $attr->value;
+
+                       # You've got to be kidding me...
+                       $attr2->value = htmlentities($attr->value);
                        $newnode->appendChild($attr2);
                }
        }