Closed MarkOates closed 7 years ago
Some editors (like rails admin) will return text fields with \r\n as newlines. This is a problem since the \r character does not pass validation:
\r\n
\r
Rather than sanitize the input, allow the carriage return \rcharacter to qualify as a newline character.
Problem
Some editors (like rails admin) will return text fields with
\r\n
as newlines. This is a problem since the\r
character does not pass validation:Solution
Rather than sanitize the input, allow the carriage return
\r
character to qualify as a newline character.