* use htmlspecialchars instead of htmlentities

git-svn-id: svn://netflint.net/xmpphp@17 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy
2008-04-06 22:50:29 +00:00
parent d4876b1702
commit 912a17ac07
2 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ class XMLObj {
$str .= "<{$this->name} xmlns='{$this->ns}' ";
foreach($this->attrs as $key => $value) {
if($key != 'xmlns') {
$value = htmlentities($value);
$value = htmlspecialchars($value);
$str .= "$key='$value' ";
}
}
@@ -57,7 +57,7 @@ class XMLObj {
foreach($this->subs as $sub) {
$str .= $sub->tostring();
}
$body = htmlentities($this->data);
$body = htmlspecialchars($this->data);
$str .= "$body</{$this->name}>";
return $str;
}