note 36630 added to function.strip-tags

From: Date: Thu, 16 Oct 2003 18:41:44 +0000
Subject: note 36630 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-58711@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.strip-tags.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36630 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36630&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36630&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58711) next »