Remote Data in HTML format

I am successfully accessing remote data that is being returned with html in it. How do I output the selection options using the html format contained in the returned data?

Example: returned data italic info here

  processResults: function (data) {
  return {
    results: data.items
  };

Return a jQuery object constructed out of the data, like this:

processResults: function(data) {
    return $('div').html(data);
};

Since I’m not sure if your HTML data will always be wrapped in HTML tags, I’m ensuring it by outputting a <div> that then contains your HTML.

1 Like

I finally found the simple fix:

escapeMarkup: function(m) {
return m;
}