 ===================================================================
 --- skeleton/xml/Text.class.php	(revision 0)
 +++ skeleton/xml/Text.class.php	(revision 0)
-@@ -0,0 +1,79 @@
+@@ -0,0 +1,88 @@
 +<?php
 +/* This class is part of the XP framework
 + *

     const
       XML_ILLEGAL_CHARS   = XML_ILLEGAL_CHARS;
 
@@ -45,12 +47,18 @@
      * @param   string name
      * @param   string content default NULL
      * @param   array<string, string> attribute default array() attributes

+        : htmlspecialchars($this->content)
+      ;
+    }
+    
+    /**
+     * Creates a string representation of this object
+     *
+     * @return  string
+     */
+    public function toString() {
+      return $this->getClassName().'<"'.addcslashes($this->content, "\0..\17").'">';
+    }
+  }
+?>

