2 ms·
why doesn't (s)he use "\n"?
by ibotty 14y ago
why doesn't (s)he use "\n"?
- firefoxman1 14y agoYeah, I think the easiest way would be this: multilineString.replace('\n', '\\n');
- captn3m0 14y agoThe github API uses "\n" inside blobs for multi-line strings, and it works out easily.