|
@@ -1,4 +1,4 @@
|
|
-using HtmlAgilityPack;
|
|
|
|
|
|
+using HtmlAgilityPack;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Text;
|
|
@@ -42,7 +42,7 @@ namespace TEAMModelOS.SDK.Helper.Common.StringHelper
|
|
if (str.EndsWith("</p>") && !str.Contains("<p>")&& !str.Contains("<p >") && !str.Contains("<p >")){
|
|
if (str.EndsWith("</p>") && !str.Contains("<p>")&& !str.Contains("<p >") && !str.Contains("<p >")){
|
|
str = str.Replace("</p>", "");
|
|
str = str.Replace("</p>", "");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ str= Regex.Replace(str, "<p([^>]{0,})>\\s*</p>", "");
|
|
return str;
|
|
return str;
|
|
}
|
|
}
|
|
|
|
|