Index: wp-admin/js/image-edit.js
===================================================================
--- wp-admin/js/image-edit.js	(revision 51475)
+++ wp-admin/js/image-edit.js	(working copy)
@@ -893,7 +893,7 @@
 			pop = this.intval( $('#imgedit-undone-' + postid).val() );
 
 		if ( pop < history.length ) {
-			if ( confirm( $('#imgedit-leaving-' + postid).html() ) ) {
+			if ( confirm( $('#imgedit-leaving-' + postid).text() ) ) {
 				return false;
 			}
 			return true;
