protected function formatStringCellValue($node)
    {
        $pNodeValues = [];
        $pNodes = $node->getElementsByTagName(self::XML_NODE_P);

        foreach ($pNodes as $pNode) {
            $currentPValue = '';

            foreach ($pNode->childNodes as $childNode) {
                if ($childNode instanceof \DOMText) {
                    $currentPValue .= $childNode->nodeValue;
                } else if ($childNode->nodeName === self::XML_NODE_S) {
                    $spaceAttribute = $childNode->getAttribute(self::XML_ATTRIBUTE_C);
                    $numSpaces = (!empty($spaceAttribute)) ? intval($spaceAttribute) : 1;
                    $currentPValue .= str_repeat(' ', $numSpaces);
                } else if ($childNode->nodeName === self::XML_NODE_A || $childNode->nodeName === self::XML_NODE_SPAN) {
                    $currentPValue .= $childNode->nodeValue;
                }
            }

            $pNodeValues[] = $currentPValue;
        }

        $escapedCellValue = implode("\n", $pNodeValues);
        $cellValue = $this->escaper->unescape($escapedCellValue);
        return $cellValue;
    }
protected function formatStringCellValue($node)
    {
        $pNodeValues = [];
        $pNodes = $node->getElementsByTagName(self::XML_NODE_P);

        foreach ($pNodes as $pNode) {
            $currentPValue = '';

            foreach ($pNode->childNodes as $childNode) {
                if ($childNode instanceof \DOMText) {
                    $currentPValue .= $childNode->nodeValue;
                } else if ($childNode->nodeName === self::XML_NODE_S) {
                    $spaceAttribute = $childNode->getAttribute(self::XML_ATTRIBUTE_C);
                    $numSpaces = (!empty($spaceAttribute)) ? intval($spaceAttribute) : 1;
                    $currentPValue .= str_repeat(' ', $numSpaces);
                } else if ($childNode->nodeName === self::XML_NODE_A || $childNode->nodeName === self::XML_NODE_SPAN) {
                    $currentPValue .= $childNode->nodeValue;
                }
            }

            $pNodeValues[] = $currentPValue;
        }

        $escapedCellValue = implode("\n", $pNodeValues);
        $cellValue = $this->escaper->unescape($escapedCellValue);
        return $cellValue;
    }
protected function formatStringCellValue ( $ node ) { $ pNodeValues = [ ] ; $ pNodes = $ node -> getElementsByTagName ( self :: XML_NODE_P ) ; foreach ( $ pNodes as $ pNode ) { $ currentPValue = '' ; foreach ( $ pNode -> childNodes as $ childNode ) { if ( $ childNode instanceof \ DOMText ) { $ currentPValue .= $ childNode -> nodeValue ; } else if ( $ childNode -> nodeName === self :: XML_NODE_S ) { $ spaceAttribute = $ childNode -> getAttribute ( self :: XML_ATTRIBUTE_C ) ; $ numSpaces = ( ! empty ( $ spaceAttribute ) ) ? intval ( $ spaceAttribute ) : 1 ; $ currentPValue .= str_repeat ( ' ' , $ numSpaces ) ; } else if ( $ childNode -> nodeName === self :: XML_NODE_A || $ childNode -> nodeName === self :: XML_NODE_SPAN ) { $ currentPValue .= $ childNode -> nodeValue ; } } $ pNodeValues [ ] = $ currentPValue ; } $ escapedCellValue = implode ( "\n" , $ pNodeValues ) ; $ cellValue = $ this -> escaper -> unescape ( $ escapedCellValue ) ; return $ cellValue ; }
Returns the cell String value.

@param \DOMNode $node
@return string The value associated with the cell
Returns the cell String value .