I got a *.txt file that contains html code. I want to remove:
<textarea cols="100" rows="50" name="newcontent" id="newcontent">
and
</textarea>
I'm able to remove first tag with this:
$content_replaced = preg_replace ("/<textarea cols=\"100\" rows=\"50\" name=\"newcontent\" id=\"newcontent\">/", "", $replace);
but can't figure out how to replace < /textarea> aswell. Thanks :)