parameters: (s)
return_statement: return Markup(s)
docstring: Filter to urlencode strings.
docstring_summary: Filter to urlencode strings.
docstring_tokens: Filter to urlencode strings .
function: def urlencode_filter(s):
      """
      Filter to urlencode strings.
      """
      if type(s) == 'Markup':
          s = s.unescape()
  
      s = s.encode('utf8')
      s = urllib.quote_plus(s)
  
      return Markup(s)
function_tokens: def urlencode_filter ( s ) : if type ( s ) == 'Markup' : s = s . unescape ( ) s = s . encode ( 'utf8' ) s = urllib . quote_plus ( s ) return Markup ( s )