/// <summary> /// Renders this text node using document default rendering options /// </summary> /// /// <returns> /// A string of HTML-encoded text /// </returns> public override string Render() { var opts = DomRenderingOptions; return(HtmlData.HtmlEncode(NodeValue, opts.HasFlag(DomRenderingOptions.HtmlEncodingNone) ? HtmlEncodingMethod.HtmlEncodingNone : opts.HasFlag(DomRenderingOptions.HtmlEncodingMinimum) ? HtmlEncodingMethod.HtmlEncodingMinimum : HtmlEncodingMethod.HtmlEncodingFull)); }