Ejemplo n.º 1
0
 def sanitize(self, html):
     return sanitize_html_fragment(html, self.allowed_tags,
         self.allowed_attributes, self.allowed_styles_map)
Ejemplo n.º 2
0
 def sanitize(self, html):
     return sanitize_html_fragment(html, self.allowed_tags,
                                   self.allowed_attributes,
                                   self.allowed_styles_map)