This project is read-only.

HTML Problems

May 5, 2012 at 5:18 AM

Hi, thanks for the great library, but i have one problem:

I have a base template similar to _Layout.cshtml in MVC 3. It has only one placeholder - @Model.Content. I'm also have several "partials" views that stored as a simple HTML files. I need to embed this partial views into my base template, but the final result is rendered as plain text with tags. For example i need to have Header 2 but i see <h2>Title</h2> on my page instead of parsed HTML.

Is it possible to parse model data as HTML code?

Jun 27, 2012 at 11:33 AM

I had this problem. If you use @Raw(<string>) then it will format it as Html