For some IOS apps (Notes, for example) you can ‘Share’ the data/note with other user/Apple IDs.
Once shared to the new/other AppleID, I think the shared data will remain accessible when the originating device is wiped. Maybe. Some testing is advised.

Depending on the data, perhaps you could just ‘print’ the individual notes to PDF. Email/send/save those PDF files off device.

To create a PDF from content;
In iOS, click print for the desired content.
Then pinch zoom in to expand the print page preview.
The preview will change to an actual full screen PDF.
Click the icon (up arrow out of a box) to save/send the PDF.