Closed LeBenLeBen closed 7 years ago
In order to cater to a wider range of use-cases, the PHP Manual entry for json_encode()
suggests the following:
json_encode($a, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE)
This should encode apostrophes, quotes, ampersands, tags and leave unicode characters alone.
Can someone try it out. If it works I will merge it.
See #46