-2

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.

Bindiya Patoliya
  • 2,726
  • 1
  • 16
  • 15

1 Answers1

2

Use

 stripcslashes($title["page_content"]);
Bindiya Patoliya
  • 2,726
  • 1
  • 16
  • 15