def __init__(<EOL>self,<EOL>tags=None,<EOL>attributes=None,<EOL>styles=None,<EOL>protocols=None,<EOL>strip=True,<EOL>strip_comments=True<EOL>):
self.tags = tags<EOL>self.attributes = attributes<EOL>self.styles = styles<EOL>self.protocols = protocols<EOL>self.strip = strip<EOL>self.strip_comments = strip_comments<EOL>self.bleach_params = dict(<EOL>strip=self.strip,<EOL>strip_comments=self.strip_comments<EOL>)<EOL>if self.tags:<EOL><INDENT>self.bleach_params['<STR_LIT>'] = self.tags<EOL><DEDENT>if self.attributes:<EOL><INDENT>self.bleach_params['<STR_LIT>'] = self.attributes<EOL><DEDENT>if self.styles:<EOL><INDENT>self.bleach_params['<STR_LIT>'] = self.styles<EOL><DEDENT>if self.protocols:<EOL><INDENT>self.bleach_params['<STR_LIT>'] = self.protocols<EOL><DEDENT>
Initialize the filter and set bleach config options

:param tags: allowed tag list
:param attributes: allowed attributes list, dict or callable
:param styles: allowed styles
:param protocols: allowed protocols for links
:param strip: strip disallowed elements?
:param strip_comments: strip comments?