mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-04-19 19:22:50 +08:00
1.0.8
This commit is contained in:
commit
54082a82f1
@ -1,3 +1,3 @@
|
||||
dot rm-bom
|
||||
dot rm-blank
|
||||
dot tolf
|
||||
dot rbom -w
|
||||
dot trim -w
|
||||
dot tolf -w
|
@ -518,6 +518,16 @@ public static class StringExtensions
|
||||
.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>
|
||||
/// 蛇形命名
|
||||
|
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>1.0.7</Version>
|
||||
<Version>1.0.8</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user