code: function (html) {
        var wasExpanded = !this.isCollapsed;
  
        // Update HTML if provided, otherwise use the current html and restore
        // the truncated content to the original if it's currently present.
        if (typeof html !== 'undefined') {
          this.original = this.element.innerHTML = html;
        } else if (this.isCollapsed && this.element.innerHTML === this.cached) {
          this.element.innerHTML = this.original;
        }
  
        // Wrap the contents in order to ignore container's margin/padding.
        var $wrap = this.$element.wrapInner('<div/>').children();
        $wrap.css({
          border: 'none',
          margin: 0,
          padding: 0,
          width: 'auto',
          height: 'auto',
          'word-wrap': 'break-word'
        });
  
        this.isTruncated = false;
        // Check if already meets height requirement
        if ($wrap.height() > this.options.maxHeight) {
          this.isTruncated = truncateNestedNode($wrap, $wrap, this.$clipNode, this.options);
  
          if(this.isExplicitlyCollapsed) {
            this.isCollapsed = true;
            wasExpanded = false;
          }
        } else {
          this.isCollapsed = false;
        }
  
        // Restore the wrapped contents
        $wrap.replaceWith($wrap.contents());
  
        // Cache the truncated content
        this.cached = this.element.innerHTML;
  
        // If the container was expanded when .update() was called then restore
        // it to it's previous state.
        if (wasExpanded) {
          this.element.innerHTML = this.original;
        }
      }
docs: /* Public: Updates the inner HTML of the element and re-truncates. Will not
  perform an updade if the container is currently expanded, instead it
  will wait until the next time .collapse() is called.
  
  html - The new HTML.
  
  Returns nothing.