Hi,
I'm in a situation where I need to replace some html with a string that contains double quotes and this is throwing off the double quotes wrapping the compose (I think)
I am attempting the following function:

Plain text version:
"@replace(outputs('Compose'), 'img', "img onerror=this.style.display = none"')"
It replaces the string 'img' with some onerror styling. I'd edit the HTML itself if I could but we aren't generating these emails so we have to correct for it here.
This line works perfectly if there are no double quotes within the surrounding quotes, like I have here. If I try something like this then the compose takes no action and it's output becomes "@replace(outputs('Compose'), 'img', 'img onerror=""')" (the compose itself)
Not sure if I am explaining this well but I'll be around to reply, thanks!!