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

  • Home
  • SEARCH
  • 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 7553751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:08:47+00:00 2026-05-30T11:08:47+00:00

This a data am getting in a ajax call. Its supposed to be html.

  • 0

This a data am getting in a ajax call. Its supposed to be html. How can I add this in a div as html? I think the chars are returned in safe format. Is there a way to print it either by javascript or php?

       \n     \n\u003Cscript type=\u0022text\/javascript\u0022\u003E\nvar qid =  28;\n\n\u003C
    \/script\u003E   \n\n\u003Ca href=\u0022#\u0022 class=\u0022test\u0022\u003ETest\u003C
    \/a\u003E\n   \n\u003Cdiv class=\u0022findme view view-test-mode view-id-test_mode 
    view-display-id-page view-dom-id-1\u0022\u003E\n        \n  \n  \n      \u003Cdiv 
    class=\u0022questions\u0022\u003E\n    \u003Ch1 class=\u0022question\u0022\u003EWhich of 
    the following proves or disproves a specific act through oral testimony based on 
    information gathered through the witness\u0027s five senses?\u003C\/h1\u003E
\n\t\u003Cdiv class=\u0022options\u0022\u003E\n\t\u003Cinput id=\u00221\u0022type=\u0022radio\u0022 
    name=\u0022answer\u0022  value=\u0022Circumstantial evidence.\u0022 \/\u003ECircumstantial
     evidence.\u003Cbr\/\u003E\u003Cinput id=\u00222\u0022type=\u0022radio\u0022 
    name=\u0022answer\u0022  value=\u0022Corroborative evidence.\u0022 \/\u003ECorroborative 
    evidence.\u003Cbr\/\u003E\u003Cinput id=\u00223\u0022type=\u0022radio\u0022 
    name=\u0022answer\u0022  value=\u0022Direct evidence.\u0022 \/\u003EDirect evidence.\u003Cbr\/\u003E\u003Cinput id=\u00224\u0022type=\u0022radio\u0022 
    name=\u0022answer\u0022  value=\u0022Conclusive evidence.\u0022 \/\u003EConclusive 
    evidence.\u003Cbr\/\u003E\t\n\t\t\n\t\u003C\/div\u003E\n\t       \u003C\/div\u003E\n  \n 
    \n\t\n    \u003Cdiv class=\u0022item-list\u0022\u003E\u003Cul class=\u0022pager\u0022\u003E
    \u003Cli class=\u0022pager-previous first\u0022\u003E\u003Ca href=\u0022\/qengine
    \/test?page=5\u0022 class=\u0022active\u0022\u003E\u2039\u2039\u003C\/a\u003E\u003C
    \/li\u003E\n\u003Cli class=\u0022pager-current\u0022\u003E7 of 29\u003C\/li\u003E
    \n\u003Cli class=\u0022pager-next last\u0022\u003E\u003Ca href=\u0022\/qengine\/test?page=7
    \u0022 class=\u0022active\u0022\u003E\u203a\u203a\u003C\/a\u003E\u003C\/li\u003E\n\u003C
    \/ul\u003E\u003C\/div\u003E\n  \n \n  \n\n  \n  \u003C!--Total: 29done : 7--\u003E\u003Ca 
    href=\u0022#back\u0022 class=\u0022back\u0022\u003EBack\u003C\/a\u003E|\u003Ca 
    href=\u0022#next\u0022 class=\u0022next\u0022\u003ENext\u003C\/a\u003E |  \u003Ca 
    href=\u0022results\u0022 class=\u0022result\u0022\u003EEnd Test \u0026 Show Results\u003C
    \/a\u003E\t\u003Cbr\/\u003E\u003Cbr\/\u003E\n\t\u003Cinput type=\u0022checkbox\u0022 
    name=\u0022mark\u0022 value=\u0022marked\u0022 class=\u0022mark\u0022\/\u003E Mark For 
    Review   \n  \n  \n  \n  \n  \n\u003C\/div\u003E
  • 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-30T11:08:48+00:00Added an answer on May 30, 2026 at 11:08 am

    The characters are returned in an escaped unicode format. You can encode it as UTF8 with this function:

    function encode_utf8( s )
    {
      return unescape( encodeURIComponent( s ) );
    }
    

    For example:

    encode_utf8( '\u003Cscript type=\u0022text\/javascript\u0022\u003E' ); -> '<script type="text/javascript">'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an issue getting this jQuery.ajax call to work. When the script executes
I am getting this error: Data at the root level is invalid. Line 1,
I am getting an error when I run this query because the data type
I keep on getting this error error: expected specifier-qualifier-list for core data code im
I can set data in JTable constructor, and then user can change this data
I'm having trouble getting a response back from a Jquery ajax call... (It's a
I’m having trouble getting a AJAX/JSON function to work correctly. I had this function
am making an ajax call to retrive json data i then store the retrived
For some reason one particular AJAX call of mine is getting a No parameterless
This data is for a holiday cottage's simple accommodation calendars. The data is simple

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.