HTML is being rendered as literal string using RazorEngine. How can I prevent this?

前端 未结 2 1087
心在旅途
心在旅途 2020-12-21 00:44

I\'m trying to generate a HTML document with RazorEngine (http://razorengine.codeplex.com/). Everything is mostly working, but the problem I have now is some of the

2条回答
  •  不知归路
    2020-12-21 00:53

    Have you tried:

    @Raw(installationReport.DigiChannels())
    

    Edit : I could use it in following way (MVC3)

    @Html.Raw(installationReport.DigiChannels())
    

提交回复
热议问题