Remove slashes from URLs using json_encode($str, JSON_UNESCAPED_SLASHES);