This is stripping out html. You might considering using bleach, which is an html5 away html stripper that we already have. You know what there is to say about html parsing and regexes :).