Lexy::compile_echos PHP 메소드

compile_echos() 보호된 메소드

Rewrites Lexi's echo statements into PHP echo statements.
protected compile_echos ( string $value ) : string
$value string
리턴 string
    protected function compile_echos($value)
    {
        $value = preg_replace('/\\{\\{\\{(.+?)\\}\\}\\}/', '<?php echo htmlentities($1, ENT_QUOTES, "UTF-8", false); ?>', $value);
        return preg_replace('/\\{\\{(.+?)\\}\\}/', '<?php echo $1; ?>', $value);
    }