mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Hotfix for #3597
This commit is contained in:
@@ -1598,7 +1598,7 @@ class BaseHtml
|
|||||||
} elseif (is_array($value) && $name === 'data') {
|
} elseif (is_array($value) && $name === 'data') {
|
||||||
foreach ($value as $n => $v) {
|
foreach ($value as $n => $v) {
|
||||||
if (is_array($v)) {
|
if (is_array($v)) {
|
||||||
$html .= " $name-$n='" . Json::encode($v) . "'";
|
$html .= " $name-$n='" . Json::encode($v, JSON_HEX_APOS) . "'";
|
||||||
} else {
|
} else {
|
||||||
$html .= " $name-$n=\"" . static::encode($v) . '"';
|
$html .= " $name-$n=\"" . static::encode($v) . '"';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user