Re: [NEWBIE] How to allow for <a href> tags but no others?

From: Date: Fri, 25 Feb 2005 20:48:06 +0000
Subject: Re: [NEWBIE] How to allow for <a href> tags but no others?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209441@lists.php.net to get a copy of this message
> Can I set up a PHP script which will strictly only allow instances > of <a href="???"> and </a> and absolutely nothing else? I would like the http://php.net/strip_tags You'll still want to use a Regular Expression to rip out every attribute/value other than HREF, but at least all the other HTML tags will be gone. You probably are better off inventing your own syntax as Chris pointed out, but figured it's better to give you options than not. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#209441) next »