We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e335e79 commit 43d3f8dCopy full SHA for 43d3f8d
1 file changed
tests/system/View/ParserTest.php
@@ -605,6 +605,19 @@ public function testParserNoEscape()
605
$this->assertSame('<script>Heroes</script>', $this->parser->renderString($template));
606
}
607
608
+ public function testParserNoEscapeAndDelimiterChange()
609
+ {
610
+ $this->parser->setDelimiters('{{', '}}');
611
+
612
+ $data = [
613
+ 'title' => '<script>Heroes</script>',
614
+ ];
615
+ $this->parser->setData($data);
616
617
+ $template = '{{! title !}}';
618
+ $this->assertSame('<script>Heroes</script>', $this->parser->renderString($template));
619
+ }
620
621
public function testIgnoresComments()
622
{
623
$data = [
0 commit comments