mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Add tests for auto escape variables content
This commit is contained in:
parent
40f0eb9b7b
commit
478d28b20f
@ -105,7 +105,17 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
||||
'{{data.property.3}}',
|
||||
array("data"=>array("property"=>array(1,2,3,4))),
|
||||
'4'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'{{data.unsafe}}',
|
||||
array('data' => array('unsafe' => '<strong>Test</strong>')),
|
||||
'<strong>Test</strong>'
|
||||
),
|
||||
array(
|
||||
'{{{data.safe}}}',
|
||||
array('data' => array('safe' => '<strong>Test</strong>')),
|
||||
'<strong>Test</strong>'
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user