LightnCandy option: FLAG_NOESCAPE

Do not do any HTML escape on {{var}}. This option is same with handlbars.js noEscape option.

Sample Codes

The default behavior is escaping values.

Data:
array(
  "foo" => "Love & <b>Peace</b>"
)
Template:
{{foo}}
Result:
Command failed: php .exec_tmp_file 2>/dev/null
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{foo}}";

$php = LightnCandy::compile($template);
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "Love & <b>Peace</b>"
);
echo $render($data);

Do not escaping values.

Used option: FLAG_NOESCAPE

Data:
array(
  "foo" => "Love & <b>Peace</b>"
)
Template:
{{foo}}
Result:
Command failed: php .exec_tmp_file 2>/dev/null
Source Code
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
$template = "{{foo}}";

$php = LightnCandy::compile($template, array(
  "flags" => LightnCandy::FLAG_NOESCAPE
));
$render = LightnCandy::prepare($php);
$data = array(
  "foo" => "Love & <b>Peace</b>"
);
echo $render($data);