aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-05-03 09:39:58 +0200
committerMario <mario@mariovavti.com>2024-05-03 09:39:58 +0200
commitb25662e183fa800d13908e707e0a3f33131b9ea8 (patch)
tree172c0b039e50c7f531a75c132c90bb97b0c81a79 /include
parent47a86f877172fe6cdc44991c0722550e4190cb95 (diff)
downloadvolse-hubzilla-b25662e183fa800d13908e707e0a3f33131b9ea8.tar.gz
volse-hubzilla-b25662e183fa800d13908e707e0a3f33131b9ea8.tar.bz2
volse-hubzilla-b25662e183fa800d13908e707e0a3f33131b9ea8.zip
fix nested lists by parsing li before ul or ol and add a test
Diffstat (limited to 'include')
-rw-r--r--include/html2bbcode.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 03e09cd62..b7f3ea4e3 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -205,10 +205,9 @@ function html2bbcode($message)
node2bbcode($doc, 'audio', array('src'=>'/(.+)/'), '[audio]$1', '[/audio]');
// node2bbcode($doc, 'iframe', array('src'=>'/(.+)/'), '[iframe]$1', '[/iframe]');
-
+ node2bbcode($doc, 'li', array(), "[*]", "");
node2bbcode($doc, 'ul', array(), "[list]", "[/list]");
node2bbcode($doc, 'ol', array(), "[list=1]", "[/list]");
- node2bbcode($doc, 'li', array(), "[*]", "");
node2bbcode($doc, 'hr', array(), "[hr]", "");