note 15533 added to function.strip-tags

From: Date: Sun, 16 Sep 2001 04:32:26 +0000
Subject: note 15533 added to function.strip-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-18054@lists.php.net to get a copy of this message
I believe that example submitted by toni@dse.nl has a mistake. In order to convert back to a link like the one below: <a href="http://something">something</a> this needs to be used : $html = preg_replace("/&lt;(($tags).*?)&gt;/i", '<\1>', $html); instead of what he has: $html = preg_replace("/&lt;($tags.*?)&gt;/i", '<\1>', $html); http://www.php.net/manual/en/function.strip-tags.php

« previous php.notes (#18054) next »