Parse HTML before passing into jQuery function.

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