Convert escaped characters/ whitespaces to plain text
I received data from another database and want to data as plain text.
For now it is using \n, \v,\e, \t, etc as escaped characters. But I want to use it as a text.
I don't want to use str_replace, preg_replace.
So how to achieve the solution for this
Output should be like below
Example:
echo $abc;
Output:
Abc\n\tasd
json_decode()will convert the escaped characters. What API returns these literally and requires you to parse them?