replace \" with " in jquery code example Example: replace jquery $("p:first").replaceWith("Hello world!");