]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PageContent.php
Customization: Added parent tag classes
[bookstack] / app / Entities / Tools / PageContent.php
index 4f68b828fc56e794bfd196535e338d3632df4d98..d2f5de65c3e58cd83e6fb37dd650bc780581734b 100644 (file)
@@ -379,7 +379,7 @@ class PageContent
     protected function headerNodesToLevelList(DOMNodeList $nodeList): array
     {
         $tree = collect($nodeList)->map(function (DOMElement $header) {
-            $text = trim(str_replace("\xc2\xa0", '', $header->nodeValue));
+            $text = trim(str_replace("\xc2\xa0", ' ', $header->nodeValue));
             $text = mb_substr($text, 0, 100);
 
             return [