DomDocument.createText

DomCharacterData * createText(scope const(char)[] data) @nogc nothrow pure @safe

A new text node (not attached), with a copy of data