ASP.NET MVC Html.Encode - New lines

后端 未结 5 1191
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 00:03

Html.Encode seems to simply call HttpUtility.HtmlEncode to replace a few html specific characters with their escape sequences.

However this

5条回答
  •  梦谈多话
    2020-12-30 00:22

    Put your output inside

     and/or  blocks. E.g:

    @someValue
    / @someValue

    Use the equivalent css on an existing div:

    @someValue

    Depends whether you want the semantic markup or whether you want to fiddle with css. I think these are both neater than inserting
    tags.

提交回复
热议问题