How to keep string with quotes?
<p>If user insert this data <strong>16" HOUSEHOLD STAND FAN AA070021A</strong> the output should be same like this <strong>16" HOUSEHOLD STAND FAN AA070021A</strong>  but i only get this output 16\ HOUSEHOLD STAND FAN AA070021A, the quotes become "\" .</p>

<p>Before :</p>

<p>16\ HOUSEHOLD STAND FAN AA070021A</p>

<p>After :</p>

<p>16" HOUSEHOLD STAND FAN AA070021A</p>

<pre><code>add_to_quote.php?product_name=16" HOUSEHOLD STAND FAN AA070021A

 &lt;?php
  $product_name_1 = $_GET['product_name'];
  $product_name_2  = str_replace('"', "", $product_name_1);
  $product_name = preg_replace(array('/\s{2,}/', '/[\t\n]/'), ' ', $product_name_2);
  echo $product_name;
  ?&gt;
</code></pre>
