When the input string contains newline characters the generated javascript is invalid as strings in javascript can't span multiple lines. (related: #52)
Here I'm just escaping newline characters "\n" so the generated javascript contains the actual "\" and "n" characters, then javascript will interpret that as the newline character... this is really strange to try and explain xD
When the input string contains newline characters the generated javascript is invalid as strings in javascript can't span multiple lines. (related: #52)
Here I'm just escaping newline characters "\n" so the generated javascript contains the actual "\" and "n" characters, then javascript will interpret that as the newline character... this is really strange to try and explain xD