summaryrefslogtreecommitdiff
path: root/tests/test_autoescape/code.php
blob: 9f73700ce78f68ee3c31cb57f4f2e0e1b1b7694b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

use kch42\ste\STECore;

$ste_initializer = function($sa) {
	return new STECore($sa, STECore::ESCAPE_HTML);
};

function test_func($ste) {
	$ste->vars['test'] = 'foo"&<bar>';
	
	$ste->register_tag('echoarg', function ($ste, $params, $sub) {
		return $params['echo'];
	});
}