Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP HTML Scrubber?
June 22, 2006, 5:31 am
rate this thread
(http://search.cpan.org/~podmaster/HTML-Scrubber-0.08/Scrubber.pm). I need it
to sanitize comments submitted to a web log.
Is there such a thing?
Re: PHP HTML Scrubber?
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']);
$content = ??? //how do I invoke safehtml.php against this string variable?
... more processing ...
- » Subdomains Retaining The Logos From The Root Domain
- — Previous thread in » PHP Scripting Forum