Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8316217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:18:41+00:00 2026-06-08T21:18:41+00:00

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

  • 0

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]

enter image description here

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:18:42+00:00Added an answer on June 8, 2026 at 9:18 pm

    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 this

    $(String)
    

    but 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.

    $('#temp').html($(String));
    

    now you can access to .html() or other things like complate object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some html string that is coming from telerik radeditor, it may contain
I have a AJAX request that will return a string that contains some HTML
I have some code in a python string that contains extraneous empty lines. I
So I have some code here that takes user input from a standard web
I have an HTML form with some radio buttons like these: <form action =
I have a problem with Javascript and HTML. I'm using a form that the
Here is the situation. I have some ViewModels that contain nested complex model types.
I have a string ($c) that contains a comma-separated list of settings. Some settings
I have a string that contains HTML image elements that is stored in a
I have a string that contains a czech character. the string is 0bálka This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.