Adds HtmlValueType

This commit is contained in:
Shannon
2018-11-26 12:06:38 +11:00
parent fba549e59c
commit 4f7de35e04
7 changed files with 49 additions and 38 deletions

View File

@@ -540,7 +540,7 @@ namespace Umbraco.Core
public static string StripHtml(this string text)
{
const string pattern = @"<(.|\n)*?>";
return Regex.Replace(text, pattern, String.Empty);
return Regex.Replace(text, pattern, string.Empty, RegexOptions.Compiled);
}
/// <summary>