mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-04-20 01:22:51 +08:00
<adjust>
This commit is contained in:
parent
54082a82f1
commit
3a1a71d1c1
@ -10,7 +10,7 @@ if ($apikey -eq $null -or $apikey -eq "")
|
|||||||
}
|
}
|
||||||
|
|
||||||
rm -r ./build/nupkgs
|
rm -r ./build/nupkgs
|
||||||
dotnet build -c Release ./src/NSExt.sln
|
dotnet build -c Release
|
||||||
$files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.nupkg
|
$files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.nupkg
|
||||||
foreach($file in $files)
|
foreach($file in $files)
|
||||||
{
|
{
|
||||||
|
@ -518,16 +518,6 @@ public static class StringExtensions
|
|||||||
.ToLower(CultureInfo.CurrentCulture);
|
.ToLower(CultureInfo.CurrentCulture);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 纯文本字符串转html
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="me"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static string Text2Html(this string me)
|
|
||||||
{
|
|
||||||
return me.Replace(" ", " ").Replace("\r\n", "<br />").Replace("\r", "<br />").Replace("\n", "<br />");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 蛇形命名
|
/// 蛇形命名
|
||||||
@ -553,6 +543,16 @@ public static class StringExtensions
|
|||||||
return me.Substring(startIndex, length);
|
return me.Substring(startIndex, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 纯文本字符串转html
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="me"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string Text2Html(this string me)
|
||||||
|
{
|
||||||
|
return $"<pre>{me}</pre>";
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 将连续多个空格替换成一个空格
|
/// 将连续多个空格替换成一个空格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user