I'm trying to display a rich text field but all I get is something like this:
Here is the code I'm using:
var clientContext = null;
var web = null;
ExecuteOrDelayUntilScriptLoaded(Initialize, "sp.js");
function Initialize()
{
//Use for Cross Site Data
var siteUrl = /sites/MySPSite/CurSite;
//clientContext = new SP.ClientContext.get_current();
clientContext = new SP.ClientContext(siteUrl);
web = clientContext.get_web();
var list = web.get_lists().getByTitle("Posts");
var camlQuery = new SP.CamlQuery();
var q = "<View><Query><OrderBy><FieldRef Name='PublishedDate' Ascending='False'/></OrderBy></Query><RowLimit>1</RowLimit></View>";
camlQuery.set_viewXml(q);
this.listItems = list.getItems(camlQuery);
clientContext.load(listItems, 'Include(Id, Title, Body, Blurb)');
clientContext.executeQueryAsync(Function.createDelegate(this, this.onListItemsLoadSuccess),
Function.createDelegate(this, this.onQueryFailed));
}
function onListItemsLoadSuccess(sender, args) {
var listItemEnumerator = this.listItems.getEnumerator();
while (listItemEnumerator.moveNext()) {
var item = listItemEnumerator.get_current();
var itemId = item.get_id();
var curTitle = item.get_item('Title');
var curBody = item.get_item('Body');
}
$('#postTitle').text(curTitle);
$('#postBody').text(curBody);
}
function onQueryFailed(sender, args) {
alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace());
}
What should I be using to get the Rich Text content to display properly?

$('#postBody').text(curBody);to$('#postBody').html(curBody);