protected shouldPreserveWhitespace ( |
||
$textNode | The text node element ( |
|
return | boolean | Whether whitespace should be preserved |
protected function shouldPreserveWhitespace($textNode)
{
$spaceValue = $textNode->getAttribute('space', 'xml');
return $spaceValue === 'preserve';
}