function getTrimmedContent() {
			var content = editor.getBody().innerHTML;
			var bogusAllRegExp = /<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g;
			var endTagIndex, index, matchLength, matches, shortEndedElements, schema = editor.schema;

			content = trimHtml(content);
			shortEndedElements = schema.getShortEndedElements();

			// Remove all bogus elements marked with "all"
			while ((matches = bogusAllRegExp.exec(content))) {
				index = bogusAllRegExp.lastIndex;
				matchLength = matches[0].length;

				if (shortEndedElements[matches[1]]) {
					endTagIndex = index;
				} else {
					endTagIndex = SaxParser.findEndTag(schema, content, index);
				}

				content = content.substring(0, index - matchLength) + content.substring(endTagIndex);
				bogusAllRegExp.lastIndex = index - matchLength;
			}

			return trim(content);
		}
Returns a trimmed version of the editor contents to be used for the undo level. This
will remove any data-mce-bogus="all" marked elements since these are used for UI it will also
remove the data-mce-selected attributes used for selection of objects and caret containers.
It will keep all data-mce-bogus="1" elements since these can be used to place the caret etc and will
be removed by the serialization logic when you save.

@private
@return {String} HTML contents of the editor excluding some internal bogus elements.