A case of html as below:
1.<input type="text">
, the input is "aa\r\nbb"
2.<textarea></textarea>
, the input is "aa", "bb" and a newline between them.
Then I get the data from backend is both "aa\r\nbb"
But when I transfer it into JSON with some tools, the result is different.
<input type="text">
,the result is "aa\\r\\nbb",
but for textrea part, the result is still is "aa\r\nbb" .
So why isn't the "\" of textarea transfered to "\\"?