Search code examples
c#postal

What's the equivalent of @Html.Raw in Postal?


I'm running Postal from a service. My @Message has html. @Html.Raw is not available. When Postal runs my templated view, I get HtmlEncoded html. does anyone know how to fix this?


Solution

  • In our service, we've used:

    @Raw(StringToBeEncoded)
    

    In the html template it will complain it can not be resolved, but at runtime @Raw works fine. Its part of RazorEngine.