Box\Spout\Reader\XLSX\Helper\SharedStringsHelper::shouldPreserveWhitespace PHP Method

shouldPreserveWhitespace() protected method

If the text node has the attribute 'xml:space="preserve"', then preserve whitespace.
protected shouldPreserveWhitespace ( SimpleXMLElement $textNode ) : boolean
$textNode Box\Spout\Reader\Wrapper\SimpleXMLElement The text node element () whitespace may be preserved
return boolean Whether whitespace should be preserved
    protected function shouldPreserveWhitespace($textNode)
    {
        $spaceValue = $textNode->getAttribute('space', 'xml');
        return $spaceValue === 'preserve';
    }