diff -r 2edaca00bc7964dffb33dce184c81e143172523c -r 25fed767e5df57cb51c3a231bb440398db170c35 indefero/src/IDF/templates/idf/wiki/viewPage.html --- a/indefero/src/IDF/templates/idf/wiki/viewPage.html Sun Mar 09 22:40:56 2014 -0500 +++ b/indefero/src/IDF/templates/idf/wiki/viewPage.html Sun Mar 09 23:10:52 2014 -0500 @@ -27,9 +27,6 @@
{trans 'Table of Content'}

{$page.summary}

- {literal} - - {/literal} {markdown $rev.content, $request} diff -r 2edaca00bc7964dffb33dce184c81e143172523c -r 25fed767e5df57cb51c3a231bb440398db170c35 pluf/src/Pluf/Text/HTML/Filter.php --- a/pluf/src/Pluf/Text/HTML/Filter.php Sun Mar 09 22:40:56 2014 -0500 +++ b/pluf/src/Pluf/Text/HTML/Filter.php Sun Mar 09 23:10:52 2014 -0500 @@ -125,6 +125,8 @@ */ public $allow_hexadecimal_entities = 1; + public $check_tags_flag = 0; + public $allowed_entities = array( 'amp', 'gt', @@ -173,10 +175,13 @@ function check_tags($data) { - $data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))", $data); - foreach (array_keys($this->tag_counts) as $tag) { - for ($i=0; $i<$this->tag_counts[$tag]; $i++) { - $data .= ""; + if ($this->check_tags_flag) + { + $data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))", $data); + foreach (array_keys($this->tag_counts) as $tag) { + for ($i=0; $i<$this->tag_counts[$tag]; $i++) { + $data .= ""; + } } } return $data;