Page 1 of 1

VERY simple question from a newbie

Posted: Thu Jan 15, 2009 8:16 pm
by blodder24
I'm using the function defined at: http://www.phpbuilder.com/columns/sanitize_inc_php.txt

How do you call sanitize() to use the paranoid and html functions?
I've tried sanitize($string, 1 OR 8) but the string still outputs html & non alphanumeric characters

Re: VERY simple question from a newbie

Posted: Thu Jan 15, 2009 8:47 pm
by Christopher
It looks like you would bitwise OR them like:

Code: Select all

$output = sanitize($input, UTF|PARANOID);