summaryrefslogtreecommitdiff
path: root/tests/test_autoescape/code.php
blob: f88d229263959fc01d7c33fc23f016b095355e4e (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'];
	});
}