capybara/virtualenv/lib/python2.7/site-packages/markupsafe/_native.py
def escape(s):
    """Convert the characters &, <, >, ' and " in string s to HTML-safe
    sequences.  Use this if you need to display text that might contain
    such characters in HTML.  Marks return value as markup string.
    """
    if hasattr(s, '__html__'):
        return s.__html__()
    return Markup(text_type(s)
        .replace('&', '&amp;')
        .replace('>', '&gt;')
        .replace('<', '&lt;')
        .replace("'", '&#39;')
        .replace('"', '&#34;')
    )
def escape(s):
    """Convert the characters &, <, >, ' and " in string s to HTML-safe
    sequences.  Use this if you need to display text that might contain
    such characters in HTML.  Marks return value as markup string.
    """
    if hasattr(s, '__html__'):
        return s.__html__()
    return Markup(text_type(s)
        .replace('&', '&amp;')
        .replace('>', '&gt;')
        .replace('<', '&lt;')
        .replace("'", '&#39;')
        .replace('"', '&#34;')
    )
def escape ( s ) : if hasattr ( s , '__html__' ) : return s . __html__ ( ) return Markup ( text_type ( s ) . replace ( '&' , '&amp;' ) . replace ( '>' , '&gt;' ) . replace ( '<' , '&lt;' ) . replace ( "'" , '&#39;' ) . replace ( '"' , '&#34;' ) )
Convert the characters &, <, >, ' and " in string s to HTML-safe
    sequences.  Use this if you need to display text that might contain
    such characters in HTML.  Marks return value as markup string.
Convert the characters & < > and in string s to HTML - safe sequences . Use this if you need to display text that might contain such characters in HTML . Marks return value as markup string .