1 //------------------------------------------------------------------------------
2 // <copyright file="HtmlString.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //------------------------------------------------------------------------------
8 // Simple objects that wraps a string that is assumed to not need HTML encoded.
9 // It implements IHtmlString, so when calling HttpUtility.HtmlEncode(htmlString), the string won't be encoded.
10 public class HtmlString: IHtmlString {
12 private string _htmlString;
14 public HtmlString(string value) {
18 public string ToHtmlString() {
22 public override string ToString() {