1HTMLDocument.string(3kaya) Kaya module reference HTMLDocument.string(3kaya)
2
3
4
6 HTMLDocument::string - Convert an entire HTML document to a String
7
9 String string( HTMLDocument doc, UnicodeFormat uform=LiteralUTF8 )
10
12 doc The HTML document
13
14 uform The mode for handling multibyte UTF-8 characters. LiteralUTF8
15 will give a smaller String, and one that is more readable in other Uni‐
16 code-aware applications. NumericReference will give a larger String,
17 especially if multibyte characters are very common in the text, but
18 will work better if the String will later be edited in non-Unicode
19 applications. This argument is optional, and defaults to the recom‐
20 mended LiteralUTF8
21
23 Converts the entire document to String form for output. If the String
24 will then be immediately printed, the HTMLDocument.write (3kaya) func‐
25 tion is considerably more efficient.
26
27
28 str = string(doc);
29 str = string(doc,NumericReference);
30
32 Kaya standard library by Edwin Brady, Chris Morris and others
33 (kaya@kayalang.org). For further information see http://kayalang.org/
34
36 The Kaya standard library is free software; you can redistribute it
37 and/or modify it under the terms of the GNU Lesser General Public
38 License (version 2.1 or any later version) as published by the Free
39 Software Foundation.
40
42 ElementTreeData.UnicodeFormat (3kaya)
43 HTMLDocument.HTMLDocument (3kaya)
44 HTMLDocument.substring (3kaya)
45 HTMLDocument.write (3kaya)
46
47
48
49Kaya December 2010 HTMLDocument.string(3kaya)