Copy your text and run this code in the terminal.
What is it doing? This command pastes your text from the “pasteboard” (hence the pb in pbpaste and pbcopy) and pipes (|) it back to the pasteboard. Since these commands don’t support richtext by default it gets stripped.
I use this sometimes when I have a lot of little pieces to cut and paste. It’s easy to command-tab to the terminal. Press up to run the previous command and press enter. Some applications have a special shortcut command (Ctrl-Shift-V) to do this but many don’t.