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

Posted by Daniel Tryba on 05/25/05 21:04

In comp.lang.php ZeldorBlat <zeldorblat@gmail.com> wrote:
> I will allow you to strip out HTML tags, and even specify which tags
> you want to keep (i.e. <b>, <i>, <br>, etc.). It won't allow you to
> strip just external links, but it's a good start.


That would still allow for events to happen for these elements, it makes
it just a _little bit_ harder to abuse. IMHO it's better to use your own
markup tags (eg [i]italic[i]) and apply the transformation to <i>italic</i>
after escaping the contents.

 

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

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