Better way of constructing html strings for jquery

I was getting this error with jQuery. Came from having white spaces in the string. Also this is better way to construct strings over multiple lines instead of using backslashes

Uncaught Error: Syntax error, unrecognized expression: <div id="confirm-modal-704215676989406"...