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 7185585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:26:54+00:00 2026-05-28T18:26:54+00:00

json -> the response returned back {msg:<DIV><P>Unfortunately we were unable to process your application.</p><BR>Please

  • 0

json -> the response returned back

{"msg":"<DIV><P>Unfortunately we were unable to process your application.</p><BR>Please upload a CV<BR></DIV>", "status":"error"} 

The error

SCRIPT1015: Unterminated string constant

The line with the error

var data = $(this).contents().find('body').html();//I have console logged this and holds the above json as a string.
data = jQuery.parseJSON(data);// problem is here.

for some reason I think, it may be because the html tags because .text() works as oppose to .html(), however I need to use the .html() because it’s formatted there with html tags.

Any suggestions ?

  • 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-05-28T18:26:55+00:00Added an answer on May 28, 2026 at 6:26 pm

    Is that a line break in the json? If that’s the case, then that’s your error. Try eliminating it with something like data.replace( '\n', ' ' ).

    Update from the comments: Val realized that the IE8 parser was in fact borking on his test case, while the original javascript JSON parser handled it just fine. If you need that original parser, it’s at: https://github.com/douglascrockford/JSON-js as linked to from: http://www.json.org and is pretty much a drop in replacement.

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

Sidebar

Related Questions

I have an array of data that is returned as a JSON response. The
I'm having trouble parsing a json response. Its created via php and sent back
I have a REST-service that returns JSON. But the JSON response returned with \
I'm have trouble grabbing the response JSON data that's returned via AJAX call. Here
im getting response in json, but this wont parse the json response. what m
I am writing a JSON response from a perl/cgi program. The header's content type
We have a JSON response which can contain null values (e.g. { myValue: null
I am getting JSON response from the server..Inside that JSON string i am having
I have a JSON response that is formatted from my C# WebMethod using the
I'm trying to generate a JSON response that includes some HTML. Thus, I have

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.