def unescape(s):
    """
    Action execution escapes escaped chars in result (i.e. \n is stored as \\n).
    This function unescapes those chars.
    """
    if isinstance(s, six.string_types):
        s = s.replace("\\n", "\n")
        s = s.replace("\\r", "\r")
        s = s.replace('\\"', '"')

    return s

    Action execution escapes escaped chars in result (i.e. 
 is stored as \n).
    This function unescapes those chars.
    
st2client/st2client/utils/strutil.py