Location: PHPKode > projects > Craigslist Classfieds PHP Clone Script > classifieds/classes/Sanitize.php
<?php

	

    Class Sanitize {

        

        public static function clean($input) {

            $input = strip_tags(mysql_real_escape_string($input));            

            return $input;

        }

        

        public static function cleanDescription($description) {

            $description = strip_tags($description, '<p><a><img><b><strong>');    

            return $description;

        }

        

    }

    

?>
Return current item: Craigslist Classfieds PHP Clone Script