Add possible missing files (I don't trust git move).

This commit is contained in:
2025-04-27 12:41:33 +01:00
parent c8e1f0c5c1
commit 5fd8484b3b
167 changed files with 30433 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
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<CommonTypes.Metadata.Ata> helper, string text) =>
string.IsNullOrEmpty(text)
? string.Empty
: Regex.Replace(helper.Encode(text), "&#xD;&#xA;|&#xA;|&#xD;", "<br/>");
public static string EncodedMultiLineText(this IHtmlHelper<Mmc> helper, string text) =>
string.IsNullOrEmpty(text)
? string.Empty
: Regex.Replace(helper.Encode(text), "&#xD;&#xA;|&#xA;|&#xD;", "<br/>");
public static string EncodedMultiLineText(this IHtmlHelper<MmcSd> helper, string text) =>
string.IsNullOrEmpty(text)
? string.Empty
: Regex.Replace(helper.Encode(text), "&#xD;&#xA;|&#xA;|&#xD;", "<br/>");
public static string EncodedMultiLineText(this IHtmlHelper<Scsi> helper, string text) =>
string.IsNullOrEmpty(text)
? string.Empty
: Regex.Replace(helper.Encode(text), "&#xD;&#xA;|&#xA;|&#xD;", "<br/>");
}