Improved `<p>` to `<br>` conversion
authorAlexander Ebert <ebert@woltlab.com>
Sun, 28 Aug 2016 19:57:08 +0000 (21:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 28 Aug 2016 19:57:08 +0000 (21:57 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php

index 8f9dc49abea23b1f46ec76b2b290dd3982dbb004..f3c2d8f6b3f2288bef5f22a6d65d32ed30df6987 100644 (file)
@@ -100,7 +100,8 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor {
                                                }
                                                
                                                if ($element && $element->nodeName === 'br') {
-                                                       $paragraph->removeChild($element);
+                                                       DOMUtil::removeNode($paragraph, true);
+                                                       continue;
                                                }
                                        }