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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:32:51+00:00 2026-06-16T09:32:51+00:00

I am working on a simple blog application using MVC 4 and the new

  • 0

I am working on a simple blog application using MVC 4 and the new WebAPI. I am also using ICanHaz.js for the rendering of the results returned from the webAPI methods I have created. I have been able to get the rendering to work, but the actual text of the comment is in HTML, so the JSON that is returned from the webAPI method looks like this:

{"Title":"just a small title",
"Body":"<p>blah blah blah</p><p>blah blah <strong>blah</strong></p>"}

my template looks like this.

<article>
    <h2><a href="#" onclick="GetSingePost({{Id}})">{{ Title }}</a></h2>

    {{ Body }}
</article>

How do I get the HTML from the JSON object to actually get rendered as HTML? I have tried the triple brackets:

{{{ Body }}}

That didn’t work.
Any suggestions would be super helpful.

  • 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-16T09:32:52+00:00Added an answer on June 16, 2026 at 9:32 am

    You could just use JQuery to set the html to an element you have in the template.

    <article>
      <h2><a href="#" onclick="GetSingePost({{Id}})">{{ Title }}</a></h2>
      <div class="content"></div>
    </article>
    
    var data = {
      first_name: "Henrik",
      last_name: "Joreteg",
      html : "<h1>Hello</h1>"
    }
    
    // I can has user??
    html = ich.user(data)
    $(html).find('.content').html(data.html);
    

    Not ideal but will work.

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

Sidebar

Related Questions

I'm working on a simple blog system and I'm using contenteditable so that users
ROR Sample Application URL - http://sixrevisions.com/web-development/how-to-create-a-blog-from-scratch-using-ruby-on-rails/ I tried above reference for creating a blog
Hello again, stackoverflow community! I'm working on writing a simple blog system in Rails,
I have created a blog application using Ruby on Rails and have just added
I just started using Wordpress 3.0 to get a simple blog up and going.
I have a working application using Json.NET (newtonsoft) as a custom serializer. Currently I'm
I'm trying to use the django-voting tutorial from this blog: http://new.justinlilly.com/blog/2008/nov/04/django-voting-a-brief-tutorial/ to get a
I have this simple code: <html> <head> <title>My Cake Blog Application</title> <?=$html->css('styles');?> </head> <body>
I'm building a simple blog using Jekyll, and I'm pulling my hair out trying
I've created a blog using django and hosted it on dotcloud http://www.honeybunny.dotcloud.com/blog/ its working

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.