[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Categories: Parse description through wiki/markdown renderer instead of HTML escaping

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a2fd04adee15_381962ac5612c@gitlab-sidekiq-low-urgency-cpu-bound-v2-59fd79ccfd-9wrtp.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
4f190118 by Moïse Nturubika at 2026-06-15T09:59:47+00:00
[FIX] Categories: Parse description through wiki/markdown renderer instead of HTML escaping
---
* [FIX] Categories: Parse description through wiki/markdown renderer instead of HTML escaping

See merge request tikiwiki/tiki!10526

- - - - -


2 changed files:

- templates/tiki-browse_categories.tpl
- tiki-admin_categories.php


Changes:

=====================================
templates/tiki-browse_categories.tpl
=====================================
@@ -2,7 +2,7 @@
 {title}{if $parentId ne 0}{tr}Category:{/tr} {$p_info.name}{else}{tr}Categories{/tr}{/if}{/title}
 
 {if $parentId and $p_info.description}
-    <div class="description form-text">{$p_info.description|escape|nl2br}</div>
+    <div class="description form-text">{$p_info.description|parse}</div>
 {/if}
 <div class="mb-3 mx-0 t_navbar">
     {button href="tiki-edit_categories.php" _type="link" _text="{tr}Categorize Objects{/tr}" _icon_name="structure" _title="{tr}Categorize Objects{/tr}"}


=====================================
tiki-admin_categories.php
=====================================
@@ -599,7 +599,7 @@ foreach ($categories as $category) {
             '
             );
         }
-        $desc = '<small class="d-block text-muted">' . smarty_modifier_escape($category['description']) . '</small>';
+        $desc = '<small class="d-block text-muted">' . TikiLib::lib('parser')->parse_data($category['description']) . '</small>';
 
         $treeNodes[] = [
             'id' => $category['categId'],



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4f19011805304d4c1feb7e672b9b7f9b7e9d5ad7

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4f19011805304d4c1feb7e672b9b7f9b7e9d5ad7
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.