src/PowerTools/HTML5/Serializer/OutputRules.php
public function text($ele) {
        if (isset($ele->parentNode) && isset($ele->parentNode->tagName) && HTML5_Elements::isA($ele->parentNode->localName, HTML5_Elements::TEXT_RAW)) {
            $this->wr($ele->data);
            return;
        }

        // FIXME: This probably needs some flags set.
        $this->wr($this->enc($ele->data));
    }
public function text($ele) {
        if (isset($ele->parentNode) && isset($ele->parentNode->tagName) && HTML5_Elements::isA($ele->parentNode->localName, HTML5_Elements::TEXT_RAW)) {
            $this->wr($ele->data);
            return;
        }

        // FIXME: This probably needs some flags set.
        $this->wr($this->enc($ele->data));
    }
public function text ( $ ele ) { if ( isset ( $ ele -> parentNode ) && isset ( $ ele -> parentNode -> tagName ) && HTML5_Elements :: isA ( $ ele -> parentNode -> localName , HTML5_Elements :: TEXT_RAW ) ) { $ this -> wr ( $ ele -> data ) ; return ; } // FIXME: This probably needs some flags set. $ this -> wr ( $ this -> enc ( $ ele -> data ) ) ; }
Write a text node.

@param \DOMText $ele
The text node to write.
Write a text node .