preg_replace with style format issue
<p>I have this text stored in my databse:</p>

<pre><code> &lt;div style=\"font-family:arial black;font-size:20px;text-align:center;color:#3333ff;font-weight:700;\"&gt;testing editor&lt;/div&gt;
</code></pre>

<p>now when trying to process it to my website editor I'm using this function:</p>

<pre><code>function striplen($Text)
{
// strip slashes
$Text = stripslashes($Text);
// find the errors quote
$errors = array("#\r\n#", '#"#');
// find the correct self content
$corrected = array('\r\n', '');

return preg_replace($errors, $corrected, $Text);
}
</code></pre>

<p>this out put the text like this:</p>

<pre><code>&lt;div style=font-family:arial black;font-size:20px;text-align:center;color:#3333ff;font-weight:700;&gt;testing editor&lt;/div&gt;
</code></pre>

<p>as you can see the double quotes from the style tag disappeared?</p>

<p>any suggestions?</p>

<p>many thanks,</p>
