aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-13 15:06:16 -0800
committerzotlabs <mike@macgirvin.com>2016-11-13 15:06:16 -0800
commit7763643f2e55c82af97d5db5315f051ed9cc6090 (patch)
tree4b17facd3094e8f8e128a30507f72fdc49a25876 /Zotlabs
parent61d2bed0191f93f71d7fdad8b17b4b6c6ece7a6d (diff)
downloadvolse-hubzilla-7763643f2e55c82af97d5db5315f051ed9cc6090.tar.gz
volse-hubzilla-7763643f2e55c82af97d5db5315f051ed9cc6090.tar.bz2
volse-hubzilla-7763643f2e55c82af97d5db5315f051ed9cc6090.zip
zidify wiki content
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Wiki.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index b73244a1c..68731e852 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -177,7 +177,7 @@ class Wiki extends \Zotlabs\Web\Controller {
$content = ($p['content'] !== '' ? htmlspecialchars_decode($p['content'],ENT_COMPAT) : '"# New page\n"');
// Render the Markdown-formatted page content in HTML
require_once('library/markdown.php');
- $html = wiki_generate_toc(purify_html(Markdown(wiki_bbcode(json_decode($content)))));
+ $html = wiki_generate_toc(zidify_text(purify_html(Markdown(wiki_bbcode(json_decode($content))))));
$renderedContent = wiki_convert_links($html,argv(0).'/'.argv(1).'/'.$wikiUrlName);
$hide_editor = false;
$showPageControls = $wiki_editor;
@@ -262,7 +262,7 @@ class Wiki extends \Zotlabs\Web\Controller {
$resource_id = $_POST['resource_id'];
require_once('library/markdown.php');
$content = wiki_bbcode($content);
- $html = wiki_generate_toc(purify_html(Markdown($content)));
+ $html = wiki_generate_toc(zidify_text(purify_html(Markdown($content))));
$w = wiki_get_wiki($resource_id);
$wikiURL = argv(0).'/'.argv(1).'/'.$w['urlName'];
$html = wiki_convert_links($html,$wikiURL);