mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 18:43:07 +03:00
Merge pull request #48 from Mibew/auto_esc_vars_tests
Add tests for auto escape variables content
This commit is contained in:
commit
5b188ce19e
@ -105,7 +105,17 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
|||||||
'{{data.property.3}}',
|
'{{data.property.3}}',
|
||||||
array("data"=>array("property"=>array(1,2,3,4))),
|
array("data"=>array("property"=>array(1,2,3,4))),
|
||||||
'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