/// <summary>
 /// Initializes a new <see cref="ContentViewComponentResult"/>.
 /// </summary>
 /// <param name="content">
 /// Content to write. The content is treated as already HTML encoded, and no further encoding
 /// will be performed.
 /// </param>
 public ContentViewComponentResult([NotNull] HtmlString encodedContent)
 {
     EncodedContent = encodedContent;
     Content        = WebUtility.HtmlDecode(encodedContent.ToString());
 }
 /// <summary>
 /// Initializes a new <see cref="ContentViewComponentResult"/>.
 /// </summary>
 /// <param name="content">Content to write. The content be HTML encoded when output.</param>
 public ContentViewComponentResult([NotNull] string content)
 {
     Content        = content;
     EncodedContent = new HtmlString(WebUtility.HtmlEncode(content));
 }