.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.string" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::string \- Convert an entire HTML document to a String .SH "SYNOPSIS" .B String string( \fIHTMLDocument doc, UnicodeFormat uform=LiteralUTF8\fP .B ")" .SH "ARGUMENTS" .PP .B "doc" The HTML document .PP .B "uform" The mode for handling multibyte UTF-8 characters. \fBLiteralUTF8 \fP will give a smaller String, and one that is more readable in other Unicode-aware applications. \fBNumericReference \fP will 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 recommended \fBLiteralUTF8 \fP .SH "DESCRIPTION" .PP Converts the entire document to String form for output. If the String will then be immediately printed, the .B "HTMLDocument.write"(3kaya) function is considerably more efficient. .IP "" -4 str = string(doc); str = string(doc,NumericReference); .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "ElementTreeData.UnicodeFormat"(3kaya) .PP .B "HTMLDocument.HTMLDocument"(3kaya) .PP .B "HTMLDocument.substring"(3kaya) .PP .B "HTMLDocument.write"(3kaya) .PD 0.4v