def __call__(self, text, **kwargs):
if '<STR_LIT>' in kwargs:<EOL><INDENT>filter_name = kwargs['<STR_LIT>']<EOL>del kwargs['<STR_LIT>']<EOL>filter_kwargs = {}<EOL><DEDENT>else:<EOL><INDENT>from django.conf import settings<EOL>filter_name, filter_kwargs = settings.MARKUP_FILTER<EOL><DEDENT>if filter_name is None:<EOL><INDENT>return text<EOL><DEDENT>if filter_name not in self._filters:<EOL><INDENT>raise ValueError("<STR_LIT>" % (filter_name,<EOL>'<STR_LIT:U+002CU+0020>'.join(self._filters.iterkeys())))<EOL><DEDENT>filter_func = self._filters[filter_name]<EOL>filter_kwargs.update(**kwargs)<EOL>return filter_func(text, **filter_kwargs)<EOL>
Applies text-to-HTML conversion to a string, and returns the
HTML.