How do I remove all form elements and their contents using php. What pattern should I insert in preg_replace;
HTML string:
<p>Hey I am a boy</p>
<form id='id1' class='class1'>Content</form>
<p>Hey I am a girl</p>
<form id='id1' class='class1'>content</form>
Preg_replace should return string:
<p>I am a boy</p>
<p>Hey I am a girl</p>
i want all form elements stripped out of return string