Tidy on a shared host

Tidy on a shared host

am 21.08.2009 02:47:17 von Al

I've written an application that depends heavily on Tidy for cleaning up user
inputed text.

Unfortunately, some shared hosts won't install the extension for my clients.

Is there a way I can install a stand alone version using FTP with access only in
a directory where my program resides. The hosts have given me restricted FTP to
the dir.

Or, does anyone know of a stand-alone php class that emulates the tidy
extension. I've looked; but, not found any.

Al..........



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Tidy on a shared host

am 22.08.2009 04:41:59 von Manuel Lemos

Hello,

on 08/20/2009 09:47 PM Al said the following:
> Or, does anyone know of a stand-alone php class that emulates the tidy
> extension. I've looked; but, not found any.

Yes, you may want to try this Secure HTML parser filter package. It
comes with parser and a filter class that validates HTML against an
eventually auto-detected DTD. It returns an array of tag and data
elements that you can use to rebuild a valid HTML document using the
RewriteElement function.

http://www.phpclasses.org/secure-html-filter


--

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php