def wash(<EOL>self,<EOL>html_buffer,<EOL>render_unallowed_tags=False,<EOL>allowed_tag_whitelist=CFG_HTML_BUFFER_ALLOWED_TAG_WHITELIST,<EOL>automatic_link_transformation=False,<EOL>allowed_attribute_whitelist=CFG_HTML_BUFFER_ALLOWED_ATTRIBUTE_WHITELIST):
self.reset()<EOL>self.result = '<STR_LIT>'<EOL>self.nb = <NUM_LIT:0><EOL>self.previous_nbs = []<EOL>self.previous_type_lists = []<EOL>self.url = '<STR_LIT>'<EOL>self.render_unallowed_tags = render_unallowed_tags<EOL>self.automatic_link_transformation = automatic_link_transformation<EOL>self.allowed_tag_whitelist = allowed_tag_whitelist<EOL>self.allowed_attribute_whitelist = allowed_attribute_whitelist<EOL>self.feed(html_buffer)<EOL>self.close()<EOL>return self.result<EOL>
Wash HTML buffer, escaping XSS attacks.
@param html_buffer: text to escape
@param render_unallowed_tags: if True, print unallowed tags escaping
    < and >.  Else, only print content of unallowed tags.
@param allowed_tag_whitelist: list of allowed tags
@param allowed_attribute_whitelist: list of allowed attributes