From bb3d10583d9e64b9b92d8cb296418b5acdeed23c Mon Sep 17 00:00:00 2001 From: Olivier PEREZ <olivier@olivierperez.fr> Date: Sat, 3 Jan 2015 17:34:15 +0100 Subject: [PATCH] Vote result: Clear markdown tags --- app/inc/init.php | 10 ++++++++-- tpl/part/vote_table_classic.tpl | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/inc/init.php b/app/inc/init.php index bab1c1e9..c71313ba 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 b1b9bdb0..ccf7807a 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} -- GitLab