standardizeHTML = function(html) {
  'use strict';
  var translator = document.createElement('div');

  goog.dom.safe.setInnerHtml(
      translator,
      goog.html.uncheckedconversions
          .safeHtmlFromStringKnownToSatisfyTypeContract(
              goog.string.Const.from('HTML is never attached to DOM'), html));

  // Trim whitespace from result (without relying on goog.string)
  return translator.innerHTML.replace(/^\s+|\s+$/g, '');
}
Tells whether the array contains the given element.
@param {IArrayLike<?>|{indexOf: function(*): number}} container The array to
    find the element in.
@param {*} contained Element to find.
@return {boolean} Whether the element is in the array.
@private