Illustrator has a feature that lets you copy objects to your clipboard and paste them to other programs as SVG code. This is found under Preferences > Clipboard Handling > Include SVG Code.
2021 isn't handling the SVG code as 2020 and previous versions did. Instead of neatly formatted SVG code, you get an unformatted mess that is... just a mess. I don't know if this is even XML.
Is there some obscure setting that changed defaults from 2021 to 2020? Using the Save As dialogue produces the correct results, but I need to be able to copy and paste if at all possible.
I've attached some files to help demonstrate what my issue is and show the results I'm getting. There are just random objects and groups tossed in there to give it some formatting.