code: function setHtmlIe8SafeWay(element, html) {
    var newElement = angular.element('<pre>' + html + '</pre>');
  
    element.empty();
    element.append(newElement.contents());
    return element;
  }
docs: http://stackoverflow.com/questions/451486/pre-tag-loses-line-breaks-when-setting-innerhtml-in-ie
  http://stackoverflow.com/questions/195363/inserting-a-newline-into-a-pre-tag-ie-javascript