public static function escape($value, array $options = array()) {
        $options = $options + array(
            'encoding' => 'UTF-8',
            'flags' => ENT_QUOTES,
            'double' => false
        );

        return htmlentities($value, $options['flags'], $options['encoding'], $options['double']);
    }