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. */
- why this message is shown?
- what can i do for convert string to html if it’s length is bigger than 28458 charachters?
thank you.
finally i find a way, in String to HTML convert via jquery with
$()if your string length be bigger than 28457 characters JQuery change your string format to Array, so if you wanna use that html elements attribute for search and DOM actions it’s not easy to control, the way is at first Convert String to html element, like thisbut in this state you can’t access to
.html()so, put this Object to hidden place in your page like div or etc, here i used div with temp id.now you can access to
.html()or other things like complate object.