Hi Feris,

$allowed_tags = "<b><strong><ul><li>"; //etc
$text = strip_tags($text, $allowed_tags);

or use:

$text = strip_tags($text); //remove all tags

or do you just want to remove <script> tags?
It depends on what your going to do with it.


----- Original Message ----- 
From: "Feris Thia" <[EMAIL PROTECTED]>

> I currently develop CMS using web-based Rich Text Editor which then
> can contain some HTML tags. This tags only for formatting usages. When
> I submit the form, do I have any PHP functions filtering any harmful
> code that may exists ? Such as javascript code bla bla bla :)



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to