Handling single quotes for inserting html into database
<p>I have a bunch of html I want to put into a database field:</p>

<p>Sample:</p>

<pre><code>&lt;div id="match"&gt;
    &lt;div class="match_image"&gt;
    &lt;div class="thumbnail_block" style="float:none;width:70px;height:70px;"&gt;
&lt;div class="thumbnail_image" style="width:68px;height:68px;"&gt;
    &lt;a href="http://website.com/sweetangel000" onmouseover="javascript:startUserInfoTimer( 3512, $(this).find('.sys-online-offline:first') )" onmouseout="javascript:stopUserInfoTimer(3512)"&gt;
        &lt;img src="http://website.com/templates/tmpl_dt_valkyrie_gold/images/spacer.gif" style="background-image:url(http://www.i-date-u.com/modules/boonex/avatar/data/images/3294.jpg);" width="64" height="64" alt="sweetangel000" title="sweetangel000" /&gt;
        &lt;img src="http://website.com/templates/tmpl_dt_valkyrie_gold/images/icons/sys_status_offline.png" alt="Offline" title="Offline" class="sys-online-offline" onclick="showFloatUserInfo(3512, $(this)); return false;" width="12" height="12" /&gt;
    &lt;/a&gt;
&lt;/div&gt;  
</code></pre>

<p>I want to sort of bypass the single quotes but addslashes() destroys the email that is sent later.</p>

<p>Is there another way to  do this?</p>
