A filter's purpose is to clean XSS exploits out of HTML encoded messages. The filter is designed to parse HTML into a XML structure, remove offensive elements and attributes, and then reconstruct a normalized HTML message. Future additions may include attribute rewriting, heuristics, and possibly a centralized database of XSS attacks to scan for.