I am trying to call str_replace method in PHP.
I wanna replace \" with " but I am having issues doing that. I think PHP interprets " wrong. Is there a chance to avoid that.
$data = str_replace('\"','"',trim(ob_get_contents()));
Edit:
This is a extract of the content I am editing:
<div class=\"container-fluid\">
I would like to get
<div class="container-fluid">
Edit 2:
I tested removing \n. Interesting it only worked when using "" not ''
$data = str_replace("\n","",$test_str); // working
$data = str_replace("\n","",$test_str); // NOT working