/// <summary> /// Encodes the given text with HTML encoding (ampersand-encoding) and writes the result to the target writer. /// </summary> protected void WriteEncodedHtml(string text) { if (text == null) { return; } HtmlFormatterSlim.EscapeHtml(new StringPart(text, 0, text.Length), _target); }
/// <summary> /// Encodes the given text with HTML encoding (ampersand-encoding) and writes the result to the target writer. /// </summary> protected void WriteEncodedHtml(StringContent text) { if (text == null) { return; } HtmlFormatterSlim.EscapeHtml(text, _target); }
private void WriteEncodedHtml(StringPart text) { HtmlFormatterSlim.EscapeHtml(text, _target); }