(s)
return Markup(s)
Filter to urlencode strings.
Filter to urlencode strings.
Filter to urlencode strings .
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)
def urlencode_filter ( s ) : if type ( s ) == 'Markup' : s = s . unescape ( ) s = s . encode ( 'utf8' ) s = urllib . quote_plus ( s ) return Markup ( s )