Second attempt not using jQuery as some characters were getting mangled. External references:
This does not work in IE(9), but is fine in all other major browsers circa March 2012