public function compile(ExpressCompiler $compiler, $flags = 0)
	{
		try
		{
			if($flags & self::FLAG_RAW)
			{
				$compiler->write(var_export($this->text, true));
			}
			else
			{
				// Using ENT_COMPAT due to Knockout JS (and others) data binding, this is not risky
				// in Express-parsed attribute values due to the fact that all attribute values
				// are normalized to be quoted using double quotes.
				$compiler->out(htmlspecialchars($this->text, ENT_COMPAT | ENT_XML1 | ENT_SUBSTITUTE, 'UTF-8'));
			}
		}
		catch(ExpressViewException $e)
		{
			throw $e;
		}
		catch(\Exception $e)
		{
			throw new ExpressViewException('Unable to compile text node', $compiler->getResource(), $this->line, $e);
		}
	}
public function compile(ExpressCompiler $compiler, $flags = 0)
	{
		try
		{
			if($flags & self::FLAG_RAW)
			{
				$compiler->write(var_export($this->text, true));
			}
			else
			{
				// Using ENT_COMPAT due to Knockout JS (and others) data binding, this is not risky
				// in Express-parsed attribute values due to the fact that all attribute values
				// are normalized to be quoted using double quotes.
				$compiler->out(htmlspecialchars($this->text, ENT_COMPAT | ENT_XML1 | ENT_SUBSTITUTE, 'UTF-8'));
			}
		}
		catch(ExpressViewException $e)
		{
			throw $e;
		}
		catch(\Exception $e)
		{
			throw new ExpressViewException('Unable to compile text node', $compiler->getResource(), $this->line, $e);
		}
	}
public function compile ( ExpressCompiler $ compiler , $ flags = 0 ) { try { if ( $ flags & self :: FLAG_RAW ) { $ compiler -> write ( var_export ( $ this -> text , true ) ) ; } else { // Using ENT_COMPAT due to Knockout JS (and others) data binding, this is not risky // in Express-parsed attribute values due to the fact that all attribute values // are normalized to be quoted using double quotes. $ compiler -> out ( htmlspecialchars ( $ this -> text , ENT_COMPAT | ENT_XML1 | ENT_SUBSTITUTE , 'UTF-8' ) ) ; } } catch ( ExpressViewException $ e ) { throw $ e ; } catch ( \ Exception $ e ) { throw new ExpressViewException ( 'Unable to compile text node' , $ compiler -> getResource ( ) , $ this -> line , $ e ) ; } }
Compiles the text node into it's PHP code.

@param ExpressCompiler $compiler
@param integer $flags Raw mode is used when an element is morphed using a tag builder.
Compiles the text node into it s PHP code .