How to assign a heredoc value to a variable in Bash?

I have this multi-line string (quotes included): abc'asdf" $(dont-execute-this) foo"bar"'' How would I assign it to a variable using a heredoc in Bash? I need to preserve newlines. I don't want...