Upgrade to 3.7.0
This commit is contained in:
2
kirby/config/methods.php
Normal file → Executable file
2
kirby/config/methods.php
Normal file → Executable file
@@ -341,7 +341,7 @@ return function (App $app) {
|
||||
* @param string $context Location of output (`html`, `attr`, `js`, `css`, `url` or `xml`)
|
||||
*/
|
||||
'escape' => function (Field $field, string $context = 'html') {
|
||||
$field->value = esc($field->value, $context);
|
||||
$field->value = Str::esc($field->value, $context);
|
||||
return $field;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user