using System.Text.RegularExpressions; using DiscImageChef.CommonTypes.Metadata; using Microsoft.AspNetCore.Mvc.Rendering; namespace DiscImageChef.Server.Core { public static class HtmlHelpers { public static string EncodedMultiLineText(this IHtmlHelper helper, string text) => string.IsNullOrEmpty(text) ? string.Empty : Regex.Replace(helper.Encode(text), " | | ", "
"); public static string EncodedMultiLineText(this IHtmlHelper helper, string text) => string.IsNullOrEmpty(text) ? string.Empty : Regex.Replace(helper.Encode(text), " | | ", "
"); public static string EncodedMultiLineText(this IHtmlHelper helper, string text) => string.IsNullOrEmpty(text) ? string.Empty : Regex.Replace(helper.Encode(text), " | | ", "
"); public static string EncodedMultiLineText(this IHtmlHelper helper, string text) => string.IsNullOrEmpty(text) ? string.Empty : Regex.Replace(helper.Encode(text), " | | ", "
"); } }