阅读背景:

在HTML中呈现字符串并保留空格和换行符

来源:互联网 

I have an MVC3 app that has a details page. As part of that I have a description (retrieved from a db) that has spaces and new lines. When it is rendered the new lines and spaces are ignored by the html. I would like to encode those spaces and new lines so that they aren't ignored.I have an MVC3 app that has a details page. As




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

分享到: