C# (CSharp) Sdl.Web.Common.Models MediaItem.ToHtml - 2 examples found. These are the top rated real world C# (CSharp) examples of Sdl.Web.Common.Models.MediaItem.ToHtml extracted from open source projects. You can rate examples to help us improve the quality of examples.
Renders an HTML representation of the Entity Model.
This method is used when the Entity Model is part of a RichText instance which is mapped to a string property. In this case HTML rendering happens during model mapping, which is not ideal. Preferably, the model property should be of type RichText and the View should use @Html.DxaRichText() to get the rich text rendered as HTML.