def unescape(s):
    """
    Revert escaped characters back to their special version.

    For example, \\n => newline and \\t => tab
    """
    return s.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r')