Compiler.php
protected function compileText(Node $node)
    {

        //Dont print empty text
        if ($node->escaped)
            $text = $this->createShortCode(
                'htmlentities('.$this->exportScalar($node->value, '\'', true).', \\ENT_QUOTES, \''.$this->options['escape_charset'].'\')'
            );
        else
            $text = $this->interpolate($node->value);

        return $text.$this->compileChildren($node->children, true, true);
    }
protected function compileText(Node $node)
    {

        //Dont print empty text
        if ($node->escaped)
            $text = $this->createShortCode(
                'htmlentities('.$this->exportScalar($node->value, '\'', true).', \\ENT_QUOTES, \''.$this->options['escape_charset'].'\')'
            );
        else
            $text = $this->interpolate($node->value);

        return $text.$this->compileChildren($node->children, true, true);
    }
protected function compileText ( Node $ node ) { //Dont print empty text if ( $ node -> escaped ) $ text = $ this -> createShortCode ( 'htmlentities(' . $ this -> exportScalar ( $ node -> value , '\'' , true ) . ', \\ENT_QUOTES, \'' . $ this -> options [ 'escape_charset' ] . '\')' ) ; else $ text = $ this -> interpolate ( $ node -> value ) ; return $ text . $ this -> compileChildren ( $ node -> children , true , true ) ; }
Compiles a text-node to PTHML.

Texts get interpolated

@see Compiler->interpolate

@param Node $node the text-node to compile

@return string The compiled PHTML
Compiles a text - node to PTHML .