4 ms·Yeah, I think the easiest way would be this: multilineString.replace('\n', '\\n');by firefoxman1 14y agoYeah, I think the easiest way would be this: multilineString.replace('\n', '\\n');