Accessing the code through the html method of jQuery instead of outerHTML property of the elements. This has better backwards compatibility