Convert long strings to html elements in JQuery
===

i have a string that contain some html in string form, like this one :

    var string = '<html> ... some code here... </html>';

the problem is when i try to convert this string to html element in JQuery if the length of this string be bigger than 28457 characters JQuery convert this string to an array, as you see here :

    var temp = $(string.substr(0, 28458));

if i print "temp" this message is shown :

 - jQuery.fn.jQuery.init[102]

for access to temp i should do my actions like an array

    temp[12] /* return some html or text element that contain attribute, baseURI, etc. */

 1. why this message is shown?
 2. what can i do for convert string to html if it's length is bigger than 28458 charachters?

thank you.