Commit e88978f8 by Qiang Xue

Merge pull request #3600 from armab/patch-2

Hotfix for #3597
parents f23b7ac5 c792e0d0
......@@ -1598,7 +1598,7 @@ class BaseHtml
} elseif (is_array($value) && $name === 'data') {
foreach ($value as $n => $v) {
if (is_array($v)) {
$html .= " $name-$n='" . Json::encode($v) . "'";
$html .= " $name-$n='" . Json::encode($v, JSON_HEX_APOS) . "'";
} else {
$html .= " $name-$n=\"" . static::encode($v) . '"';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment