PHP Classes

Installation

Recommend this page to a friend!

      HTML Sanitizer  >  All threads  >  Installation  >  (Un) Subscribe thread alerts  
Subject:Installation
Summary:I don't understand how to install the sanitizer
Messages:2
Author:Jim Robson
Date:2010-06-01 17:05:13
Update:2010-06-02 06:02:16
 

  1. Installation   Reply   Report abuse  
Picture of Jim Robson Jim Robson - 2010-06-01 17:05:13
Hello, thanks for this much needed class.

I am currently working with this code for strip_code()
function filter($data) {
$data = trim(htmlentities(strip_tags($data,"<a>")));

if (get_magic_quotes_gpc())
$data = stripslashes($data);

$data = mysql_real_escape_string($data);

return $data;
}

can you help me convert over to your class?

Thanks, okrobie

  2. Re: Installation   Reply   Report abuse  
Picture of Jim Robson Jim Robson - 2010-06-02 06:02:17 - In reply to message 1 from Jim Robson
Hello, I figured it out. No instructions needed. It's all in the sample. Thanks again for this great class.