What does HTML.Raw do?

后端 未结 4 1691
有刺的猬
有刺的猬 2020-12-06 17:09

Is HTML.raw() specific to MVC? On what scenarios we have to use it?

Can you please explain with an example.

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 17:51

    Yes, it is specific to MVC.

    It writes unencoded HTML to your page. Most other methods HTML-encode a string when you write it to the page.

提交回复
热议问题