def sanitize(self, html): return sanitize_html_fragment(html, self.allowed_tags, self.allowed_attributes, self.allowed_styles_map)