NodeBuilder.addText( $text as String ) as This NodeBuilder object
Add a text node to the node tree the builder is building.
|$text||The contents of the text node.|
Adjacent text nodes will be merged in the tree produced by the builder
var builder = new NodeBuilder(); builder.startElement("para"); builder.addText("This is part of my paragraph. "); builder.addText("And this is more of it. "); builder.addText("In the end, they'll only be one text node. "); builder.endElement(); builder.toNode();