Updated text conversion to read and store safe xml strings.

This commit is contained in:
Darko Miletic
2011-11-14 21:25:08 +01:00
committed by Eloy Lafuente (stronk7)
parent 726a770949
commit 584f92962d
14 changed files with 86 additions and 51 deletions
+1 -1
View File
@@ -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;
}