Replacing all <p></p> tags in my string
<p>Hi all I am using tinymce editor where I am getting the content as follows when I submit</p>

<p><code>&lt;p&gt; Hi &lt;/p&gt;</code></p>

<p><code>&lt;p&gt; Hi &lt;/p&gt;</code>
What I need to I would like to replace all the <p></p> tags so that it should return me a plain text</p>

<p>I tried this but not getting as expected so can some one help me</p>

<pre><code> var mystring = "&lt;p&gt;test&lt;/p&gt;&lt;p&gt;test&lt;/p&gt;"
alert(mystring.replace(/(&lt;p[^&gt;]+?&gt;|&lt;p&gt;|&lt;\/p&gt;)/, ":"));
</code></pre>