DomCharacterData.borrowData

void borrowData(return scope const(char)[] s) @nogc nothrow pure @safe @trusted

Use s as the text, without copying it: s must outlive the document and never change (it's never written: a later change of the text reallocates it).