PHP Input Filter

  • Bookmark this on Hatena Bookmark
  • Hatena Bookmark - PHP Input Filter
  • Share on Facebook
  • Post to Google Buzz
  • Bookmark this on Yahoo Bookmark
  • Bookmark this on Livedoor Clip
  • Share on FriendFeed

We just released our version based on http://www.phpclasses.org/browse/package/2189.html

almost an complete rewrite plus more filters for different types of data

here an example of how to use our version

//creates the object

$filter =& input::get_instance();

// some xss string

$description = ‘<A HREF=”http://www.gohttp://www.google.com/ogle.com/”>XSS</A>’;

// strips the tags or converts them to plain text

$description = $filter->clean($description, ‘string’);

please note there is no docs for these scripts as they have been designed for dazzle cms but can work in your projects too.

docs will come later when we give our scripts there own home as this is just our development blog.

all we ask is you give us credit and link us too www.dazzlecms.com

  1. No comments yet.

  1. No trackbacks yet.