X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fhtml2bbcode.php;h=650bbdcae8c07d1071a6724463b4ef0f227809df;hb=5c0b550f38dba890f9d79b5356661bf1bf2f82b6;hp=1b940d94973fdcb3d6a8dfab5a34954e1c414f48;hpb=8c8ffdf999ee84cb712810c23d88a697463c1292;p=friendica.git diff --git a/include/html2bbcode.php b/include/html2bbcode.php index 1b940d9497..650bbdcae8 100644 --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -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) {