src/Service/Filler.php
private function getNodeValueAsText(\DOMNode $node)
    {
        $text = $node->ownerDocument->saveHTML($node);
        $text = str_replace(["<br>\n", "\n", '<br>'], ['<br>', ' ', "\n"], $text);

        return trim(strip_tags($text));
    }
private function getNodeValueAsText(\DOMNode $node)
    {
        $text = $node->ownerDocument->saveHTML($node);
        $text = str_replace(["<br>\n", "\n", '<br>'], ['<br>', ' ', "\n"], $text);

        return trim(strip_tags($text));
    }
private function getNodeValueAsText ( \ DOMNode $ node ) { $ text = $ node -> ownerDocument -> saveHTML ( $ node ) ; $ text = str_replace ( [ "<br>\n" , "\n" , '<br>' ] , [ '<br>' , ' ' , "\n" ] , $ text ) ; return trim ( strip_tags ( $ text ) ) ; }
Get node value as text.

@param \DOMNode $node

@return string
Get node value as text .