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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>     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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux