Replacing a set piece of html with another

Replacing a set piece of html with another

Hi guys,

wondering if anyone can help?

I am wanting to select a set piece of html and and replace it with another piece of html.

I've used the replaceWith command but I don't think I've written the script correctly to select the piece of html as it breaks the script.

thanks guys