* Add unHTMLArray to zin encodeJsonWithRawJs.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
namespace zin\utils;
|
||||
|
||||
function jsonEncode($data, $flags = 0, $depth = 512): string|false
|
||||
{
|
||||
$data = unHTMLArray($data);
|
||||
return json_encode($data, $flags, $depth);
|
||||
}
|
||||
Reference in New Issue
Block a user