<?php echo preg_replace('#<[^>]+>#', ' ', '<div><h1>Foo</h1>bar<h2>Foo2</h2>bar2</div><div><h1>Foo</h1>bar<h2>Foo2</h2>bar2</div>');
You have javascript disabled. You will not be able to edit any code.