Changed the return type of RTE to a different HtmlString (internal) so that it can be implicitly convertible for string for If comparisons. Added an extension method for string.HasValue so that .Where can invoke it to improve readibility when comparing RTE to empty string based on feedback from @cultiv. Cleaned up an empty if in DynamicQuerable
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace umbraco.MacroEngines
|
||||
{
|
||||
public class InternalHtmlString : HtmlString
|
||||
{
|
||||
public InternalHtmlString(string s) : base(s) { }
|
||||
public static implicit operator string(InternalHtmlString s)
|
||||
{
|
||||
return s.ToHtmlString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user