adminko
4/11/2016 - 11:21 AM

json_encode < 5.3.3

json_encode < 5.3.3

<?php

$unescaped = preg_replace_callback('/\\\\u(\w{4})/', function ($matches) {
        return html_entity_decode('&#x' . $matches[1] . ';', ENT_COMPAT, 'UTF-8');
    }, json_encode($request->data));