You are here: Re: PHP HTML Scrubber? « PHP Programming Language « IT news, forums, messages
Re: PHP HTML Scrubber?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация