diff --git a/app/inc/init.php b/app/inc/init.php index bab1c1e9f03514c751e2c68387cce5b901ccdf87..c71313baab905bac1443a91a2bd1c0561d84bba8 100644 --- a/app/inc/init.php +++ b/app/inc/init.php @@ -49,8 +49,14 @@ $smarty->assign('lang', $lang); $smarty->assign('langs', $ALLOWED_LANGUAGES); $smarty->assign('date_format', $date_format); -function smarty_modifier_poll_url($poll_id, $admin=false){return Utils::getUrlSondage($poll_id, $admin);} -function smarty_modifier_markdown($md) {return Utils::markdown($md);} +function smarty_modifier_poll_url($poll_id, $admin = false) { + return Utils::getUrlSondage($poll_id, $admin); +} + +function smarty_modifier_markdown($md, $clear = false) { + return Utils::markdown($md, $clear); +} + // End- Smarty $connect = new FramaDB(DB_CONNECTION_STRING, DB_USER, DB_PASSWORD); diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index b1b9bdb0ffb68e9e1d908ac76ec9e162264897c7..ccf7807af4fcff6f25440071b66341cd9a29e7f0 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -177,7 +177,7 @@ <ul style="list-style:none"> {foreach $slots as $slot} {if $best_choices[$i] == $max} - <li><strong>{$slot->title}</strong></li> + <li><strong>{$slot->title|markdown:true}</strong></li> {/if} {$i = $i+1} {/foreach}