X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fblock.tidy.php;h=20aeb0d23815055cdb4251a14b94f6779e17b73e;hb=d27170467f18920ae2976f84e4881f9ab385dd1d;hp=e828f23f337d4d83b72323d6cea9e7194e96c4da;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/plugins/block.tidy.php b/plugins/block.tidy.php index e828f23..20aeb0d 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 @@ -52,7 +46,9 @@ unset($tidy_o, $tydy_off); */ 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: ?>