public static function stripHtml($value, $tags = null, $keepContent = false)
    {
        $content = '';
        if(!is_array($tags)) {
            $tags = (strpos($value, '>') !== false ? explode('>', str_replace('<', '', $tags)) : array($tags));
            if(end($tags) == '') array_pop($tags);
        }
        foreach($tags as $tag) {
            if (!$keepContent)
                 $content = '(.+</'.$tag.'[^>]*>|)';
             $value = preg_replace('#</?'.$tag.'[^>]*>'.$content.'#is', '', $value);
        }
        return $value;
    }