/// <summary> /// Sets the content. /// </summary> /// <param name="unencoded"> /// The <see cref="string"/> that replaces the content. The value is assume to be unencoded /// as-provided and will be HTML encoded before being written. /// </param> /// <returns>A reference to this instance after the set operation has completed.</returns> public TagHelperContent SetContent(string unencoded) { HtmlContentBuilderExtensions.SetContent(this, unencoded); return(this); }
/// <summary> /// Sets the content. /// </summary> /// <param name="htmlContent">The <see cref="IHtmlContent"/> that replaces the content.</param> /// <returns>A reference to this instance after the set operation has completed.</returns> public TagHelperContent SetContent(IHtmlContent htmlContent) { HtmlContentBuilderExtensions.SetContent(this, htmlContent); return(this); }