* use htmlspecialchars instead of htmlentities
git-svn-id: svn://netflint.net/xmpphp@17 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user