• Escapes newline characters in a string (Supports Windows and Unix newlines).

    Parameters

    • str: string

      The string to escape

    Returns string

    The escaped string