Predicate ReDoS::escape

Gets the result of backslash-escaping newlines, carriage-returns and backslashes in s.

string escape(string s)