mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Hotfix for #3597
This commit is contained in:
@@ -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) . '"';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user