def escape_quotes(text):
 return ''.join((escape_table.get(c, c) for c in text))

def escape_quotes ( text ) : return '' . join ( ( escape_table . get ( c , c ) for c in text ) )
backslash any quotes within text .