阅读背景:

在Express.js中使用转义字符呈现文本文件

来源:互联网 

I have a JSON object with a text file in one of its fields that I'm having Express render as "text/plain" when sending a response. However, whenever it renders, it ignores the '\n' line breaks in my text and just prints everything on one line without the '\n's. How do I get my line breaks in the outputted text?I have a JSON object with a text file in one of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: