HtmlString vs. MvcHtmlString

前端 未结 3 592
陌清茗
陌清茗 2020-11-29 03:57

HtmlString vs. MvcHtmlString

What are the differences bettween those two, or when to prefer one over the other?

Edit:

3条回答
  •  难免孤独
    2020-11-29 04:32

    MvcHtmlString is used to indicate when a string should not be re-encoded.

    See What is an MvcHtmlString and when should I use it?

    and

    What does <%: %> do in ASP.NET (MVC2)?

提交回复
热议问题