more markdown purification
This commit is contained in:
parent
b153c651b4
commit
82631c3413
@ -77,12 +77,12 @@ class MarkdownSoap {
|
||||
}
|
||||
|
||||
function purify($s) {
|
||||
$s = str_replace("\n",'<br>',$s);
|
||||
$s = str_replace("\t",' ',$s);
|
||||
$s = str_replace(' ',' ',$s);
|
||||
// $s = str_replace("\n",'<br>',$s);
|
||||
// $s = str_replace("\t",' ',$s);
|
||||
// $s = str_replace(' ',' ',$s);
|
||||
$s = purify_html($s);
|
||||
$s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
|
||||
$s = str_replace(['<br>','<br />', '<', '>' ],["\n","\n", '<', '>'],$s);
|
||||
// $s = str_replace([' ', mb_convert_encoding(' ','UTF-8','HTML-ENTITIES')], [ ' ', ' ' ],$s);
|
||||
// $s = str_replace(['<br>','<br />', '<', '>' ],["\n","\n", '<', '>'],$s);
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
@ -107,8 +107,7 @@
|
||||
<script>
|
||||
window.wiki_resource_id = '{{$resource_id}}';
|
||||
window.wiki_page_name = '{{$page}}';
|
||||
// window.wiki_page_content = "{{$content|escape:'javascript'}}";
|
||||
window.wiki_page_content = '{{$content|escape:'quotes'}}';
|
||||
window.wiki_page_content = '{{$content|escape:'javascript'}}';
|
||||
window.wiki_page_commit = '{{$commit}}';
|
||||
|
||||
$("#generic-modal-ok-{{$wikiModalID}}").removeClass('btn-primary');
|
||||
|
Reference in New Issue
Block a user