diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 5c02f74a7a..6cfc1342d4 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -852,7 +852,7 @@ abstract class egw_framework foreach($extra as $name => $value) { if (is_array($value)) $value = json_encode($value); - $java_script .= ' data-'.$name."='".str_replace("'", '\\\'', $value)."'"; + $java_script .= ' data-'.$name."=\"". html::htmlspecialchars($value)."\""; } $java_script .= ">\n";