Rendering BodyPart

Topics: Writing themes
Jun 10, 2011 at 4:07 PM

How would I render the BodyPart out as HTML vs Text (it does render the text to template but not HTML encoded, ie <li> is shown on page) in a new content type w/content type template, would I have to create a part view or is this syntax line simply incorrect or incomplete.

ContentType = WSCapability

@Display(Model.ContentItem.WSCapability.BodyPart.Text)

Thanks in advance.

Coordinator
Jun 11, 2011 at 1:36 AM

Wrap it into a new HtmlString.

Jun 11, 2011 at 1:55 AM

thanks much