becomes
. But careful: the original has double quotes inside the style attribute. We'll need to escape all double quotes inside the content string. Also the market snapshot div has inline styles with double quotes. We'll replace each " with ". Also the text inside the divs like "24h Change" etc. are in double quotes? Actually they are in divs with text, no quotes. But the style attributes have quotes. We'll escape them.
Alternatively, we can use a JSON library to generate the string, but since we are writing manually, we need to be careful.
Let's write the content string with escaped double quotes. Also note that the original content has




