Fixing issue with filter
This commit is contained in:
parent
700889bedd
commit
cc6f03a62d
@ -27,9 +27,6 @@ by {$submitter}.{/blocktrans}</p>
|
|||||||
<div id="wiki-toc"><span id="contentheader">{trans 'Table of Content'}</span><div id="wiki-toc-content"></div></div>
|
<div id="wiki-toc"><span id="contentheader">{trans 'Table of Content'}</span><div id="wiki-toc-content"></div></div>
|
||||||
<script type="text/javascript" src="{media '/idf/js/wiki-toc.js'}"></script>
|
<script type="text/javascript" src="{media '/idf/js/wiki-toc.js'}"></script>
|
||||||
<p class="desc">{$page.summary}</p>
|
<p class="desc">{$page.summary}</p>
|
||||||
{literal}
|
|
||||||
<script type="syntaxhighlighter" class="brush: js"> for(i = 0; i < 10; i++) { } </script>
|
|
||||||
{/literal}
|
|
||||||
|
|
||||||
{markdown $rev.content, $request}
|
{markdown $rev.content, $request}
|
||||||
|
|
||||||
|
@ -125,6 +125,8 @@ class Pluf_Text_HTML_Filter
|
|||||||
*/
|
*/
|
||||||
public $allow_hexadecimal_entities = 1;
|
public $allow_hexadecimal_entities = 1;
|
||||||
|
|
||||||
|
public $check_tags_flag = 0;
|
||||||
|
|
||||||
public $allowed_entities = array(
|
public $allowed_entities = array(
|
||||||
'amp',
|
'amp',
|
||||||
'gt',
|
'gt',
|
||||||
@ -172,6 +174,8 @@ class Pluf_Text_HTML_Filter
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_tags($data)
|
function check_tags($data)
|
||||||
|
{
|
||||||
|
if ($this->check_tags_flag)
|
||||||
{
|
{
|
||||||
$data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))", $data);
|
$data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))", $data);
|
||||||
foreach (array_keys($this->tag_counts) as $tag) {
|
foreach (array_keys($this->tag_counts) as $tag) {
|
||||||
@ -179,6 +183,7 @@ class Pluf_Text_HTML_Filter
|
|||||||
$data .= "</$tag>";
|
$data .= "</$tag>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user