Modern shells have easy ways to deal with this, for example bracketed-paste-magic that ships with zsh.
The URL of this comment pastes like this, ready to be passed to commands:
https://news.ycombinator.com/edit\?id\=29069520