Reverting.

This commit is contained in:
elitsa
2018-12-03 12:15:34 +01:00
parent ae36e02f4c
commit 3ef4da0615

View File

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