예제 #1
0
 def sanitize(self, html):
     return sanitize_html_fragment(html, self.allowed_tags,
         self.allowed_attributes, self.allowed_styles_map)
예제 #2
0
 def sanitize(self, html):
     return sanitize_html_fragment(html, self.allowed_tags,
                                   self.allowed_attributes,
                                   self.allowed_styles_map)