From f744b3227b116d4f7ccd7c71f8b8498ebf86d85f Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 13 Apr 2015 22:35:27 +0200 Subject: Implemented autoescaping Still needs some cleanup and documentation. --- tests/test_autoescape/code.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_autoescape/code.php (limited to 'tests/test_autoescape/code.php') diff --git a/tests/test_autoescape/code.php b/tests/test_autoescape/code.php new file mode 100644 index 0000000..4f7c998 --- /dev/null +++ b/tests/test_autoescape/code.php @@ -0,0 +1,14 @@ +vars['test'] = 'foo"&'; + + $ste->register_tag('echoarg', function ($ste, $params, $sub) { + return $params['echo']; + }); + + // Autoescaping enabled by default + $ste->escape_method = STECore::ESCAPE_HTML; +} -- cgit v1.2.3-70-g09d2