Merge pull request #2266 from Progi1984/htmlBlockHeadingInTextRun

HTML Reader : Heading in Text Run is not allowed
This commit is contained in:
Progi1984 2022-07-25 22:07:06 +02:00 committed by GitHub
commit 4dc34d43d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class Html
*/
protected static function shouldAddTextRun(\DOMNode $node)
{
$containsBlockElement = self::$xpath->query('.//table|./p|./ul|./ol', $node)->length > 0;
$containsBlockElement = self::$xpath->query('.//table|./p|./ul|./ol|./h1|./h2|./h3|./h4|./h5|./h6', $node)->length > 0;
if ($containsBlockElement) {
return false;
}