| 
 Posted by deko on 06/22/06 22:33 
>>> I'm looking for a php HTML scrubber similar to the PERL HTML::Scrubber 
>> 
>> http://pear.php.net/package/HTML_Safe 
> 
> This looks interesting, but... 
> 
> How do I verify if my host's server has HTMLSax3 installed? 
> 
> Is HTMLSax3 a script I can install in my user directory if my host does not  
> have it installed? 
> 
> How do I pass the string I want checked to the Safe.php script? 
 
I downloaded the scripts from http://www.pixel-apes.com/safehtml - which  
includes HTMLSax3 as well as Decorators.php and States.php. 
 
I was able to get the demo working, but I need to do something like this (in a  
script, not in the page): 
.... 
$content = trim($_POST['comment']); 
require_once('/home/username/public_html/cgi-bin/HTML_Safe/safehtml.php'); 
$content = ??? //how do I invoke safehtml.php against this string variable? 
.... more processing ...
 
  
Navigation:
[Reply to this message] 
 |