TextNamespaceUtil::CopyTextToPackage

Make a copy of the given text that's valid to use with the given package namespace, optionally preserving its existing key.