public function escape($text, $profile = array('htmlspecialchars', 'nl2br'))
    {
        if (!is_array($profile)) {
            if (($functions = Atomik::get("helpers.escape.$profile", false)) === false) {
                if (function_exists($profile)) {
                    $functions = array($profile);
                } else {
                    throw new AtomikException("No profile or functions named '$profile' in escape()");
                }
            }
        } else {
            $functions = $profile;
        }
        
        foreach ((array) $functions as $function) {
            $text = call_user_func($function, $text);
        }
        return $text;
    }