note 36630 deleted from function.strip-tags by victor

From: Date: Sun, 14 Dec 2003 19:13:01 +0000
Subject: note 36630 deleted from function.strip-tags by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61944@lists.php.net to get a copy of this message
Note Submitter: syragon @ SYRAGON DOT COM ---- a simple solution for keeping necessary bold and text tags, while eliminating others is as follows: 1. str_replace all < and > with &gt; and &lt; *wonders if php.net will parse it or not* 2. then replace all &lt;b&gt; and &lt;/b&gt; and other tags with <b> and </b> in essence, strip them all and re-place the few.

« previous php.notes (#61944) next »