namespace Umbraco.Cms.Core.Strings; /// /// Represents an HTML-encoded string that should not be encoded again. /// public class HtmlEncodedString : IHtmlEncodedString { private readonly string _htmlString; /// Initializes a new instance of the class. /// An HTML-encoded string that should not be encoded again. public HtmlEncodedString(string value) => _htmlString = value; /// Returns an HTML-encoded string. /// An HTML-encoded string. public string ToHtmlString() => _htmlString; /// Returns a string that represents the current object. /// A string that represents the current object. public override string ToString() => _htmlString; }