22 lines
586 B
Plaintext
22 lines
586 B
Plaintext
@model dynamic
|
|
@using Umbraco.Web.Templates
|
|
|
|
@if (Model.editor.config.markup != null)
|
|
{
|
|
string markup = Model.editor.config.markup.ToString();
|
|
var UmbracoHelper = new UmbracoHelper(UmbracoContext.Current);
|
|
|
|
markup = markup.Replace("#value#", UmbracoHelper.ReplaceLineBreaksForHtml(TemplateUtilities.CleanForXss(Model.value.ToString())));
|
|
markup = markup.Replace("#style#", Model.editor.config.style.ToString());
|
|
|
|
<text>
|
|
@Html.Raw(markup)
|
|
</text>
|
|
}
|
|
else
|
|
{
|
|
<text>
|
|
<div style="@Model.editor.config.style">@Model.value</div>
|
|
</text>
|
|
}
|