Php - Remove backslash from MySQL

782 Views Asked by At

I'm using a 3rd party CMS system and am creating a page that has a designated print layout but when I'm returning the data I'm getting unwanted backslashes. IE. \"Scrutiny Process\" rather than "Scrutiny Process". I'm aware of the strip slashes function but how would I use it in the following?

if ($title = mysql_fetch_array($result))
{
do {printf("%s", $title["page_content"]);}
  while ($title = mysql_fetch_array($result));

Thanks in advance.

1

There are 1 best solutions below

0
On

Use

 stripcslashes($title["page_content"]);