Renamed Umbraco.Abstractions to Umbraco.Core
This commit is contained in:
33
src/Umbraco.Core/Strings/HtmlEncodedString.cs
Normal file
33
src/Umbraco.Core/Strings/HtmlEncodedString.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace Umbraco.Core.Strings
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents an HTML-encoded string that should not be encoded again.
|
||||
/// </summary>
|
||||
public class HtmlEncodedString : IHtmlEncodedString
|
||||
{
|
||||
|
||||
private string _htmlString;
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Web.HtmlString" /> class.</summary>
|
||||
/// <param name="value">An HTML-encoded string that should not be encoded again.</param>
|
||||
public HtmlEncodedString(string value)
|
||||
{
|
||||
this._htmlString = value;
|
||||
}
|
||||
|
||||
/// <summary>Returns an HTML-encoded string.</summary>
|
||||
/// <returns>An HTML-encoded string.</returns>
|
||||
public string ToHtmlString()
|
||||
{
|
||||
return this._htmlString;
|
||||
}
|
||||
|
||||
/// <summary>Returns a string that represents the current object.</summary>
|
||||
/// <returns>A string that represents the current object.</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return this._htmlString;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user