aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2bbcode.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-02-07 16:02:53 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-02-07 16:02:53 +0100
commit4f69e02768ac79f81f1a7ef3e7891d2e0f8f06fe (patch)
tree9a140ae3f9fdf82eabb00749ac56e62dc6d74ef2 /include/html2bbcode.php
parente6ce2885c0b4586a270e0ace79598a92365df56f (diff)
downloadvolse-hubzilla-4f69e02768ac79f81f1a7ef3e7891d2e0f8f06fe.tar.gz
volse-hubzilla-4f69e02768ac79f81f1a7ef3e7891d2e0f8f06fe.tar.bz2
volse-hubzilla-4f69e02768ac79f81f1a7ef3e7891d2e0f8f06fe.zip
Don't concert html nodes with no bbcode equivalent.
Diffstat (limited to 'include/html2bbcode.php')
-rw-r--r--include/html2bbcode.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 8822d6f1d..cbfbe10ba 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -10,6 +10,10 @@ Originally made for the syncom project: http://wiki.piratenpartei.de/Syncom
function node2bbcode(&$doc, $oldnode, $attributes, $startbb, $endbb)
{
do {
+ if (empty($startbb) && empty($endbb)) {
+ break;
+ }
+
$done = node2bbcodesub($doc, $oldnode, $attributes, $startbb, $endbb);
} while ($done);
}