I'm trying to add line breaks to the response in this already working javascript:
if (/example text/i.test(text)) return "example response";
I've tried all of the following and none have worked:
if (/example text/i.test(text)) return "example response 1/nexample response 2";
if (/example text/i.test(text)) return "example response 1" + '/n' + "example response 2";
if (/example text/i.test(text)) return "example response 1<br />example response 2";
etc etc
Is there any easy way to accomplish this inline without adding vars or more complexity to the rest of my code?
\n, not/n.