Updated text conversion to read and store safe xml strings.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
726a770949
commit
584f92962d
@@ -80,7 +80,7 @@ class cc11_basiclti extends entities11 {
|
||||
protected function getValue($node, $default = '') {
|
||||
$result = $default;
|
||||
if (is_object($node) && ($node->length > 0) && !empty($node->item(0)->nodeValue)) {
|
||||
$result = htmlentities(trim($node->item(0)->nodeValue));
|
||||
$result = htmlspecialchars(trim($node->item(0)->nodeValue), ENT_COMPAT, 'UTF-8', false);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user