using System.Text.RegularExpressions; using Aaru.CommonTypes.Metadata; using Microsoft.AspNetCore.Mvc.Rendering; namespace Aaru.Server.Old.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), " | | ", "
"); }