Author:
buzzomatic
Version:
2.1.2
Released:
1 November 2010
Category:
Text Formatters

New#1: Dependent on PHP Tidy?

Is this extension dependent on php-tidy?

I’m getting this error when I save text (using the CKEditor option) on my Mac running php 5.3.1 (default install of php on Snow Leopard).

Fatal error: Class 'Tidy' not found in /Users/user/Sites/xml-new/extensions/htmlformatter/extension.driver.php on line 577

Here’s the code that it’s choking on…

$tidy = new Tidy();  /* LINE 577 */
            $tidy->parseString(
                $source, array(
                    'drop-font-tags'                => true,
                    'drop-proprietary-attributes'   => true,
                    'hide-comments'                 => true,
                    'numeric-entities'              => true,
                    'output-xhtml'                  => true,
                    'wrap'                          => 0,

                    // Stuff to get rid of awful word this:
                    'bare'                          => true,
                    'word-2000'                     => true
                ), 'utf8'
            );

            $source = $tidy->body()->value;

Please login to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details