Merge pull request #2266 from Progi1984/htmlBlockHeadingInTextRun
HTML Reader : Heading in Text Run is not allowed
This commit is contained in:
commit
4dc34d43d8
@ -440,7 +440,7 @@ class Html
|
|||||||
*/
|
*/
|
||||||
protected static function shouldAddTextRun(\DOMNode $node)
|
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) {
|
if ($containsBlockElement) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user