Loading core/lib/Drupal/Component/Utility/Html.php +1 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public static function load($html) { $dom = new \DOMDocument(); // Ignore warnings during HTML soup loading. @$dom->loadHTML($document); @$dom->loadHTML($document, LIBXML_NOBLANKS); return $dom; } Loading core/misc/cspell/dictionary.txt +1 −0 Original line number Diff line number Diff line Loading @@ -886,6 +886,7 @@ nmsgstr nntp noaccess noadd noblanks nocache nocase nocdata Loading core/tests/Drupal/KernelTests/AssertContentTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ protected function parse() { // DOM can load HTML soup. But, HTML soup can throw warnings, suppress // them. $html_dom = new \DOMDocument(); @$html_dom->loadHTML('<?xml encoding="UTF-8">' . $this->getRawContent()); @$html_dom->loadHTML('<?xml encoding="UTF-8">' . $this->getRawContent(), LIBXML_NOBLANKS); if ($html_dom) { // It's much easier to work with simplexml than DOM, luckily enough // we can just simply import our DOM tree. Loading Loading
core/lib/Drupal/Component/Utility/Html.php +1 −1 Original line number Diff line number Diff line Loading @@ -286,7 +286,7 @@ public static function load($html) { $dom = new \DOMDocument(); // Ignore warnings during HTML soup loading. @$dom->loadHTML($document); @$dom->loadHTML($document, LIBXML_NOBLANKS); return $dom; } Loading
core/misc/cspell/dictionary.txt +1 −0 Original line number Diff line number Diff line Loading @@ -886,6 +886,7 @@ nmsgstr nntp noaccess noadd noblanks nocache nocase nocdata Loading
core/tests/Drupal/KernelTests/AssertContentTrait.php +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ protected function parse() { // DOM can load HTML soup. But, HTML soup can throw warnings, suppress // them. $html_dom = new \DOMDocument(); @$html_dom->loadHTML('<?xml encoding="UTF-8">' . $this->getRawContent()); @$html_dom->loadHTML('<?xml encoding="UTF-8">' . $this->getRawContent(), LIBXML_NOBLANKS); if ($html_dom) { // It's much easier to work with simplexml than DOM, luckily enough // we can just simply import our DOM tree. Loading