Index: /MediaWiki/trunk/extensions/FCKeditor/plugins/mediawiki/fckplugin.js
===================================================================
--- /MediaWiki/trunk/extensions/FCKeditor/plugins/mediawiki/fckplugin.js	(revision 535)
+++ /MediaWiki/trunk/extensions/FCKeditor/plugins/mediawiki/fckplugin.js	(revision 536)
@@ -49,5 +49,5 @@
 		return FCKDataProcessor.prototype.ConvertToHtml.call( this, data ) ;
 	},
-	
+
 	/*
 	 * Converts a DOM (sub-)tree to a string in the data format.
@@ -222,5 +222,5 @@
 							if ( href != htmlNode.innerHTML )
 							{
-								stringBuilder.push( isWikiUrl? '|' : ' ' ) ;									
+								stringBuilder.push( isWikiUrl? '|' : ' ' ) ;
 								this._AppendChildNodes( htmlNode, stringBuilder ) ;
 							}
@@ -268,5 +268,5 @@
 									this._AppendChildNodes( htmlNode.rows[r].cells[c], stringBuilder ) ;
 									this._IsInsideCell = false ;
-									
+
 									stringBuilder.push( '\n' ) ;
 								}
@@ -312,5 +312,7 @@
 			case 3 :
 				var textValue = htmlNode.nodeValue.replace( /[\n\t]/g, ' ' ) ;
-				
+
+				textValue = FCKTools.HTMLEncode( textValue ) ;
+
 				textValue = textValue.replace( /\u00A0/g, '&nbsp;' ) ;
 
@@ -325,5 +327,5 @@
 
 				textValue = textValue.replace( / {2,}/g, ' ' ) ;
-				
+
 				if ( this._IsInsideCell )
 					textValue = textValue.replace( /\|/g, '&#124;' ) ;
@@ -406,5 +408,5 @@
 	{
 		var args = arguments ;
-		
+
 		var loadHTMLFromAjax = function( result )
 		{
@@ -412,10 +414,10 @@
 			original.apply( FCK, args ) ;
 		}
-		
+
 		if ( FCK.EditMode == FCK_EDITMODE_SOURCE )
 		{
 			// Hide the textarea to avoid seeing the code change.
 			FCK.EditingArea.Textarea.style.visibility = 'hidden' ;
-			
+
 			var loading = document.createElement( 'span' ) ;
 			loading.innerHTML = '&nbsp;Loading Wikitext. Please wait...&nbsp;' ;
