This commit is contained in:
walkor 2022-12-02 17:10:17 +08:00
parent a24e00e086
commit 50a6e7a23e

View File

@ -43,9 +43,12 @@ class LayuiForm
*/ */
protected function options($options) protected function options($options)
{ {
array_walk_recursive($options, function(&$item){ array_walk_recursive($options, function(&$item, $key){
if (is_string($item)) { if (is_string($item)) {
$item = htmlspecialchars($item); $item = htmlspecialchars($item);
if ($key === 'url') {
$item = str_replace('&', '&', $item);
}
} }
}); });
$field = $options['field']??''; $field = $options['field']??'';