String string(HTMLDocument doc, UnicodeFormat uform=LiteralUTF8)
Arguments
doc: The HTML documentuform: The mode for handling multibyte UTF-8 characters.LiteralUTF8will give a smaller String, and one that is more readable in other Unicode-aware applications.NumericReferencewill give a larger String, especially if multibyte characters are very common in the text, but will work better if the String will later be edited in non-Unicode applications. This argument is optional, and defaults to the recommendedLiteralUTF8
Usage
Converts the entire document to String form for output. If the String will then be immediately printed, the write function is considerably more efficient.
str = string(doc);
str = string(doc,NumericReference);