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