code: function (elm) {
          elm = this.get(elm);
  
          // Older FF doesn't have outerHTML 3.6 is still used by some orgaizations
          return elm.nodeType == 1 && "outerHTML" in elm ? elm.outerHTML : $('<div></div>').append($(elm).clone()).html();
        }
docs: Returns the outer HTML of an element.
  
  @method getOuterHTML
  @param {String/Element} elm Element ID or element object to get outer HTML from.
  @return {String} Outer HTML string.
  @example
  tinymce.DOM.getOuterHTML(editorElement);
  tinymce.activeEditor.getOuterHTML(tinymce.activeEditor.getBody());