mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Show prettyfied ATA IDENTIFY on delete and details.
This commit is contained in:
12
DiscImageChef.Server/Core/HtmlHelpers.cs
Normal file
12
DiscImageChef.Server/Core/HtmlHelpers.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
|
||||
namespace DiscImageChef.Server.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), "
|
|
", "<br/>");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user