diff options
author | Mario <mario@mariovavti.com> | 2024-05-03 09:39:58 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-05-03 09:39:58 +0200 |
commit | b25662e183fa800d13908e707e0a3f33131b9ea8 (patch) | |
tree | 172c0b039e50c7f531a75c132c90bb97b0c81a79 /include | |
parent | 47a86f877172fe6cdc44991c0722550e4190cb95 (diff) | |
download | volse-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.php | 3 |
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]", ""); |