]> git.mxchange.org Git - friendica.git/blobdiff - include/html2bbcode.php
Merge remote-tracking branch 'upstream/develop' into 1501-central-item-storage
[friendica.git] / include / html2bbcode.php
index 1b940d94973fdcb3d6a8dfab5a34954e1c414f48..650bbdcae8c07d1071a6724463b4ef0f227809df 100644 (file)
@@ -76,13 +76,14 @@ function node2bbcodesub(&$doc, $oldnode, $attributes, $startbb, $endbb)
        return($replace);
 }
 
+if(!function_exists('deletenode')) {
 function deletenode(&$doc, $node)
 {
        $xpath = new DomXPath($doc);
        $list = $xpath->query("//".$node);
        foreach ($list as $child)
                $child->parentNode->removeChild($child);
-}
+}}
 
 function html2bbcode($message)
 {