reverting changes to StripHtml method.

This commit is contained in:
Claus
2019-01-04 09:34:24 +01:00
parent 0aa1dc1dc7
commit 7ead62730b

View File

@@ -540,8 +540,8 @@ namespace Umbraco.Core
/// <returns>Returns the string without any html tags.</returns>
public static string StripHtml(this string text)
{
const string pattern = "[*{}\\/:<>?|\"-+()\\n]";
return Regex.Replace(text, pattern, String.Empty);
const string pattern = @"<(.|\n)*?>";
return Regex.Replace(text, pattern, string.Empty);
}
/// <summary>