DomDocument.copy

const(char)[] copy(scope const(char)[] s) @nogc nothrow pure @safe

A string owned by the document