note 30665 deleted from function.preg-replace by derick

From: Date: Sat, 26 Apr 2003 14:10:05 +0000
Subject: note 30665 deleted from function.preg-replace by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-47138@lists.php.net to get a copy of this message
Strips out HTML tags... This probably isn't the most elegant way of doing it (I'm new to PREGs) but it works! $content = preg_replace("/<[a-z]+>/i",'', $content); // Remove opening tags $content = preg_replace("/<\/[a-z]+>/i",'', $content); // Remove closing tags Hope this helps somebody!

« previous php.notes (#47138) next »