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

use kch42\ste\STECore;

function test_func($ste) {
	$ste->vars['test'] = 'foo"&<bar>';
	
	$ste->register_tag('echoarg', function ($ste, $params, $sub) {
		return $params['echo'];
	});
	
	// Autoescaping enabled by default
	$ste->escape_method = STECore::ESCAPE_HTML;
}