You are here: Re: Allow/Make safe html user comments « All PHP « IT news, forums, messages
Re: Allow/Make safe html user comments

Posted by Chris B on 05/23/05 13:26

> Would their be some piece of code to allow me to safely and _properly_ parse
> any piece of html? where every tricks in the html books have been handled?


I think there will always be a new trick. Trying to stop someone doing
something is generally more incentive for them to try.

One thing you could try instead of stripping all html out, is simply
replacing < and > with something else, like #.
The code would still appear (obviously) but wouldn't be executable.
That is unless you don't want the html code to appear at all.. in which
case, I have no idea :)

 

Navigation:

[Reply to this 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

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