20 lines
448 B
C#
20 lines
448 B
C#
using System.Web;
|
|
using System.Web.Mvc;
|
|
using Kreta.BusinessLogic.Logic;
|
|
|
|
namespace Kreta.Web.Helpers
|
|
{
|
|
public static class RawTextExtensions
|
|
{
|
|
|
|
public static IHtmlString RawRichText(this HtmlHelper helper, string html)
|
|
{
|
|
if (html == null)
|
|
{
|
|
return helper.Raw(null);
|
|
}
|
|
|
|
return helper.Raw(RichTextLogic.ConvertRawHtmlToRichTextHtml(html));
|
|
}
|
|
}
|
|
}
|