X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fblock.tidy.php;h=e586b3e178e061f411913b7a18c7d46e8cd479e0;hb=92d96cb7270caff156df7785b800a7a3084e8a16;hp=e828f23f337d4d83b72323d6cea9e7194e96c4da;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/plugins/block.tidy.php b/plugins/block.tidy.php index e828f23..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 @@ -47,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: ?>