code: def emoticons_filter(content, exclude='', autoescape=None):
      
      esc = autoescape and conditional_escape or (lambda x: x)
      content = mark_safe(replace_emoticons(esc(content), exclude))
      return content
docs: Filter for rendering emoticons.