Beispiel #1
0
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Text(_content));
 }
 /// <summary>
 /// Returns an HTML-code representation of the character data.
 /// </summary>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override String ToHtml(IMarkupFormatter formatter)
 {
     return formatter.Text(_content);
 }
Beispiel #3
0
 /// <summary>
 /// Returns an HTML-code representation of the character data.
 /// </summary>
 /// <param name="formatter">The formatter to use.</param>
 /// <returns>A string containing the HTML code.</returns>
 public override String ToHtml(IMarkupFormatter formatter)
 {
     return(formatter.Text(_content));
 }
Beispiel #4
0
 /// <inheritdoc />
 public string Text(ICharacterData text) => _formatter.Text(text);
Beispiel #5
0
 public override void ToHtml(TextWriter writer, IMarkupFormatter formatter)
 {
     writer.Write(formatter.Text(this));
 }
Beispiel #6
0
 public string Text(string text) => Formatter.Text(text);