diff --git a/src/PhpWord/Reader/Word2007/AbstractPart.php b/src/PhpWord/Reader/Word2007/AbstractPart.php index f1bea082df..6814540290 100644 --- a/src/PhpWord/Reader/Word2007/AbstractPart.php +++ b/src/PhpWord/Reader/Word2007/AbstractPart.php @@ -151,7 +151,7 @@ protected function readParagraph(XMLReader $xmlReader, DOMElement $domNode, $par } elseif ($headingDepth !== null) { // Heading or Title $textContent = null; - $nodes = $xmlReader->getElements('w:r', $domNode); + $nodes = $xmlReader->getElements('w:r|w:hyperlink', $domNode); if ($nodes->length === 1) { $textContent = htmlspecialchars($xmlReader->getValue('w:t', $nodes->item(0)), ENT_QUOTES, 'UTF-8'); } else {