Skip to content

Commit b746fcf

Browse files
author
Kallef Alexandre
committed
changing set mode html in chapter
1 parent 3d6fd0c commit b746fcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Makers/ChapterMaker.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public function makeContent(): string
7575
$html->appendChild($body);
7676

7777
$bodyContent = $document->createDocumentFragment();
78-
$bodyContent->appendXML($this->getContent());
78+
79+
$cntentDom = new \DOMDocument;
80+
$cntentDom->loadHtml($this->getContent());
81+
$bodyContent->appendChild($document->importNode($cntentDom->documentElement, TRUE));
7982

8083
$body->appendChild($bodyContent);
8184

0 commit comments

Comments
 (0)