How do I output raw html when using RazorEngine (NOT from MVC)

前端 未结 6 1687
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 04:34

I am trying to generate emails with HTML content. this content has already gone through sanitation so I am not worried in that regard, however when I call:

         


        
6条回答
  •  天命终不由人
    2020-12-24 04:56

    Built a wrapper for RazorEngine that adds in support for @Html.Raw() and @Html.Partial()

    https://github.com/b9chris/RazorEngineComplete

提交回复
热议问题