Use parseHTML in jQuery 1.8+.  behaviour differs from 1.9 onwards.

See also: http://jquery.com/upgrade-guide/1.9/\#jquery-htmlstring-versus-jquery-selectorstring