HTML Reader : Heading in Text Run is not allowed
This commit is contained in:
parent
be0190cd5d
commit
945cbd9b93
|
|
@ -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…
Reference in New Issue