Your code looks fine (I'm assuming you're looking to get the unescaped html Output rather than have it render it as HTML which is why you've used @Html.Raw) - try changing it to this below to be sure - if this works then it's something to do with your parameter, can you post how you're passing this from the template?
Raw html in razor macro
I am trying to make a macro for rendering raw html in umbraco 7 with grid / fanoe. The macro has two parameters: htmlCode and cssClass.
However the only output i get is the html code as text. Any suggestions?
Your code looks fine (I'm assuming you're looking to get the unescaped html Output rather than have it render it as HTML which is why you've used @Html.Raw) - try changing it to this below to be sure - if this works then it's something to do with your parameter, can you post how you're passing this from the template?
Thanks for your help, I am not sure why, but it seems like this works
is working on a reply...