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

Your name:

Reply:


Posted by Richard Lynch on 10/04/86 11:09

> 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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация