html_escape($v); } } else { return htmlspecialchars($var, ENT_QUOTES, $this->_anvil->config->item('charset')); } } }