I am working on an application where user can create HTML templates and save them to the database.The templates consist of different components like text,image etc.When I tr
stripslashes() will remove slashes from any string, and is useful when outputting escaped data.
stripslashes()
I believe you need to use this:
json_encode($IdLessContent, JSON_UNESCAPED_SLASHES);
with the UNESCAPED_SLASHES part, your data should be returned correctly.