X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fblock.tidy.php;h=e586b3e178e061f411913b7a18c7d46e8cd479e0;hb=92d96cb7270caff156df7785b800a7a3084e8a16;hp=06254aa4742b0588af58f219e6d4821be1b15e68;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/plugins/block.tidy.php b/plugins/block.tidy.php index 06254aa..e586b3e 100644 --- a/plugins/block.tidy.php +++ b/plugins/block.tidy.php @@ -1,6 +1,6 @@ true, + 'drop-font-tags' => true, + 'drop-proprietary-attributes' => true, + 'hide-comments' => true, + 'logical-emphasis' => true, + 'output-xhtml' => true, + 'replace-color' => true, + 'show-body-only' => true, + 'clean' => false, + 'join-styles' => false, + 'join-classes' => false, + 'alt-text' => '[ inserted by TIDY ]', + 'wrap' => '120'); /* * Smarty plugin @@ -48,12 +41,14 @@ unset($tidy_o, $tydy_off); * File: block.min_perms.php * Type: block * Name: min_perms - * Purpose: + * Purpose: * ------------------------------------------------------------- */ function smarty_block_tidy($params, $content, &$smarty) { - return tidy_repair_string($content); + global $tidy_config; + return tidy_repair_string($content, $tidy_config, 'utf8'); } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>