ผมนำเสนอวิธีการอื่นครับ โดยไม่ต้อง ereg
$x = '<a href="link">Somethings link</a> <p>This is test paragraph</p> <b>Bold is here</b>';
echo strip_tags($x) . "\n";
echo strip_tags($x , '<p>' ) . "\n"; //Allow <p>
echo strip_tags($x , '<p><b>' ) . "\n"; //Allow <p> and <b>
Result
---------------
Somethings link This is test paragraph Bold is here
Somethings link <p>This is test paragraph</p> Bold is here
Somethings link <p>This is test paragraph</p> <b>Bold is here</b>
ข้อมูลเพิ่มเติม
http://th2.php.net/manual/en/function.strip-tags.php 