How to put HTML code into a .resx resource file?

后端 未结 4 1686
悲&欢浪女
悲&欢浪女 2021-01-06 04:34

Strange, that no one asked this before....

I am creating templated HTML emails for 4 languages. I want to put the HTML templates into my .resx files to have easy, in

4条回答
  •  迷失自我
    2021-01-06 05:22

    Put encoded html in the .resx file and then getting back the html using

    @Html.Raw(Server.HtmlDecode(...resource...));
    

提交回复
热议问题