Writes the specified element to the output, on the same line.
Writes the specified element to the output, on the same line.
Writes the specified elements to the output, all on the same line.
Writes the specified elements to the output, all on the same line.
Writes the specified string to the output, on the same line.
Writes the specified string to the output, on the same line.
Writes the specified string to the output, on the same line, with all special HTML characters converted to HTML entities.
Writes the specified span elements to the output, on the same line, while omitting indentation for all text spans written with one of the methods that convert special characters.
Writes the specified string to the output, without any indentation, with all special HTML characters converted to HTML entities.
Writes the specified string to the output, without any indentation, with all special HTML characters converted to HTML entities. This is needed for writing blocks like those enclosed in <pre&rt; tags where whitespace is significant.
Writes an opening tag with attributes derived from both the options parameter and the subsequent tuples.
Writes an opening tag with attributes derived from both
the options parameter and the subsequent tuples. The latter
also allow for overriding of class
and id
attributes
derived from the Options
instance.
Writes the specified name and value as an HTML attribute, including a preceding space character.
Writes the specified name and value as an optional HTML attribute, including a preceding space character.
Writes the specified name and value as an optional HTML attribute, including
a preceding space character. In case the value is None
nothing
will be written to the output.
Writes the specified element to the output, on a new line using the current level of indentation.
Writes the specified element to the output, on a new line using the current level of indentation.
Writes the specified elements to the output, each of them on a new line using the current level of indentation.
Writes the specified elements to the output, each of them on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation.
Writes the specified string to the output, on a new line using the current level of indentation, with all special HTML characters converted to HTML entities.
Writes the specified element to the output, on a new line and increasing indentation one level to the right.
Writes the specified element to the output, on a new line and increasing indentation one level to the right.
Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.
Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right.
Writes the specified string to the output, on a new line and increasing indentation one level to the right, with all special HTML characters converted to HTML entities.
Writes a new line character sequence.
Writes a new line character sequence.
Invokes the specified function after switching off the rendering of any indentation for escaped text elements.
Invokes the specified function after switching off the rendering of any indentation for escaped text elements. The old flag gets restored after invocation.
API for renderers that produce HTML output. Extends the base
TextWriter
and adds methods for writing text with special HTML characters escaped and for conveniently writing attributes.