diff --git a/LICENSE b/LICENSE
index d1bcdea..7777560 100644
--- a/LICENSE
+++ b/LICENSE
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.
\ No newline at end of file
diff --git a/code-format.cmd b/code-format.cmd
index 253fbb5..dd2fd79 100644
--- a/code-format.cmd
+++ b/code-format.cmd
@@ -1,3 +1,3 @@
-dot rm-bom
-dot rm-blank
-dot tolf
\ No newline at end of file
+dot rbom -w
+dot trim -w
+dot tolf -w
\ No newline at end of file
diff --git a/src/Extensions/StringExtensions.cs b/src/Extensions/StringExtensions.cs
index 8d37b6b..fdb38bf 100644
--- a/src/Extensions/StringExtensions.cs
+++ b/src/Extensions/StringExtensions.cs
@@ -518,6 +518,16 @@ public static class StringExtensions
.ToLower(CultureInfo.CurrentCulture);
}
+ ///
+ /// 纯文本字符串转html
+ ///
+ ///
+ ///
+ public static string Text2Html(this string me)
+ {
+ return me.Replace(" ", " ").Replace("\r\n", "
").Replace("\r", "
").Replace("\n", "
");
+ }
+
///
/// 蛇形命名
diff --git a/src/NSExt.csproj b/src/NSExt.csproj
index c535a5e..e0f4c95 100644
--- a/src/NSExt.csproj
+++ b/src/NSExt.csproj
@@ -3,11 +3,11 @@
net6.0;net7.0
enable
- 1.0.7
+ 1.0.8
-
+