(s)
return mark_safe(urllib.parse.quote_plus(s))
makes urllib.quote_plus available as a template filter
makes urllib.quote_plus available as a template filter
makes urllib . quote_plus available as a template filter
def urlquote(s):
    """makes urllib.quote_plus available as a template filter"""
    if isinstance(s, str):
        s = s.encode("utf-8")
    return mark_safe(urllib.parse.quote_plus(s))
def urlquote ( s ) : if isinstance ( s , str ) : s = s . encode ( "utf-8" ) return mark_safe ( urllib . parse . quote_plus ( s ) )