I have string which is returning this to me:
<div class=\"sqs-layout sqs-grid-12 columns-12\" data-layout-label=\"Post Body\" data-type=\"item\" data-updated-on=\"1539277027193\" id=\"item-5bbf7e3f9140b70d3962e2a0\"><div class=\"row sqs-row\"><div class=\"col sqs-col-12 span-12\"><div class=\"sqs-block image-block sqs-block-image\" data-block-type=\"5\" id=\"block-yui_3_17_2_1_1539794362468_25479\"><div class=\"sqs-block-content\">\n\n \n\n \t\n <div class=\"image-block-outer-wrapper">
Any idea how I can remove all the whitespaces and put this into a JS variable? I have tried countless variations of this:
.replace(/[\n\t\r]/g,"")
but nothing working yet...