note 95286 modified in tidy.examples by danbrown

From: Date: Wed, 23 Dec 2009 22:50:17 +0000
Subject: note 95286 modified in tidy.examples by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164291@lists.php.net to get a copy of this message
Important notice about configuration options: If you read the quickref on this page: http://tidy.sourceforge.net/docs/quickref.html you may get an idea that the boolean values for config options can be set as 'y' or 'yes' or 'n' or 'no' but that's not true for the tidy extension in php. Boolean values MUST be set only as true or false (without quotes or cause), otherwise tidy just ignores your configuration. It will not raise any error or warning but will just ignore your 'yes' or 'no' values. For example, this config array will not have the desired effect: <?php $config = array('drop-proprietary-attributes' => 'yes'); ?> You must set option to true: <?php $config = array('drop-proprietary-attributes' => true); ?> --was-- Important notice about configuration options: If you read the quickref on this page: http://tidy.sourceforge.net/docs/quickref.html you may get an idea that the boolean values for config options can be set as 'y' or 'yes' or 'n' or 'no' but that's not true for the tidy extension in php. Boolean values MUST be set only as true or false (without quotes or cause), otherwise tidy just ignores your configuration. It will not raise any error or warning but will just ignore your 'yes' or 'no' values. For example, this config array will not have the desired effect: $config = array('drop-proprietary-attributes' => 'yes'); You must set option to true: $config = array('drop-proprietary-attributes' => true); http://php.net/manual/en/tidy.examples.php

« previous php.notes (#164291) next »