diff options
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_xml.class b/it_xml.class index 4c9cb1c..0679c69 100644 --- a/it_xml.class +++ b/it_xml.class @@ -269,7 +269,7 @@ function to_xml($p = array()) $p['nextindentation'] .= $p['indent']; foreach ((array)$this->attr as $key => $value) - $tag .= " $key=\"" . htmlspecialchars($value) . '"'; + $tag .= " $key=\"" . htmlspecialchars($value, ENT_COMPAT, ini_get('default_charset')) . '"'; $vars = get_object_vars($this); @@ -302,7 +302,7 @@ function to_xml($p = array()) } } else if ($key == 'val') - $body .= htmlspecialchars($values); + $body .= htmlspecialchars($values, ENT_COMPAT, ini_get('default_charset')); } } |