From 5fb9267cda018c72e9168b00a93cee80e873db21 Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Wed, 3 Jun 2020 19:50:34 +0200 Subject: [PATCH] GetSearchableText method should replace HTML with new line instead of an empty string (fixes #25) --- src/Skybrud.Umbraco.GridData/Values/GridControlHtmlValue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skybrud.Umbraco.GridData/Values/GridControlHtmlValue.cs b/src/Skybrud.Umbraco.GridData/Values/GridControlHtmlValue.cs index 4b82196..be55db3 100644 --- a/src/Skybrud.Umbraco.GridData/Values/GridControlHtmlValue.cs +++ b/src/Skybrud.Umbraco.GridData/Values/GridControlHtmlValue.cs @@ -51,7 +51,7 @@ protected GridControlHtmlValue(GridControl control, JToken token) : base(control /// /// An instance of with the value as a searchable text. public override string GetSearchableText() { - return Regex.Replace(Value, "<.*?>", "") + Environment.NewLine; + return Regex.Replace(Value, "<.*?>", Environment.NewLine) + Environment.NewLine; } ///