diff --git a/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Html.cshtml b/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Html.cshtml index 4344fdd30..0905c0b8d 100644 --- a/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Html.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Layouts/Views/Elements/Html.cshtml @@ -2,7 +2,7 @@ @using Orchard.Layouts.Helpers @{ // Only render the surrounding div if there are any attributes to be rendered. - tagBuilder.InnerHtml = Model.ProcessedContent; + var commonAttributes = (IDictionary)TagBuilderExtensions.GetCommonElementAttributes(Model); var tagBuilder = commonAttributes.Any() ? new OrchardTagBuilder("div") : default(OrchardTagBuilder); if (tagBuilder != null) { @@ -10,5 +10,5 @@ } } @if (tagBuilder != null) { @tagBuilder.StartElement } -@Html.Raw(Model.ProcessedText) +@Html.Raw(Model.ProcessedContent) @if (tagBuilder != null) { @tagBuilder.EndElement } \ No newline at end of file