Kaya 0.5.3 reference for HTMLDocument::substring

List of functions and data types in HTMLDocument

String substring(ElementTree tree, UnicodeFormat uform=LiteralUTF8, Doctype doctype=HTML4Strict)

Arguments

Usage

Convert a part of the document (or a fragment of HTML unconnected to the document) into String form. This can be used as an easy way of giving HTML source examples:

p = addParagraph(parent,"An image: ");
img = addImage(p,ImageData("example.png","an example",Unspecified));
p2 = addParagraph(parent,"HTML code for the image: "+substring(img));

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya