Isn’t escaping usually done with a backslash (`\`) instead of a forward slash (`/`)? I don’t see how something like `$('<div />');` could interfere with that.
var str = "Hello \"world\", how\\are you";
But once you have your string composed, jQuery does not as far as I know have a way to escape characters like < and >.