code: function (elm, html) {
          var self = this;
  
          self.$$(elm).each(function () {
            try {
              // Older FF doesn't have outerHTML 3.6 is still used by some organizations
              if ("outerHTML" in this) {
                this.outerHTML = html;
                return;
              }
            } catch (ex) {
              // Ignore
            }
  
            // OuterHTML for IE it sometimes produces an "unknown runtime error"
            self.remove($(this).html(html), true);
          });
        }
docs: Sets the specified outer HTML on an element or elements.
  
  @method setOuterHTML
  @param {Element/String/Array} elm DOM element, element id string or array of elements/ids to set outer HTML on.
  @param {Object} html HTML code to set as outer value for the element.
  @example
  // Sets the outer HTML of all paragraphs in the active editor
  tinymce.activeEditor.dom.setOuterHTML(tinymce.activeEditor.dom.select('p'), '<div>some html</div>');
  
  // Sets the outer HTML of an element by id in the document
  tinymce.DOM.setOuterHTML('mydiv', '<div>some html</div>');