Remove HTML Formatting PHP
<p>I am attempting to remove formatting from copied text off of another website.  I can use <code>preg_replace</code> along with other methods, but I want to keep <code>&lt;p&gt;</code>'s and such, but remove formatting such as <code>&lt;font&gt;</code>.</p>

<p>Here is what I'm using right now to clean my text currently:</p>

<p><code>mysql_real_escape_string(str_replace("\r\n",'', $_POST['maintext']));</code></p>
