includes/clientside/tinymce/plugins/paste/editor_plugin_src.js
changeset 588 20484deb89cd
parent 543 dffcbfbc4e59
child 778 57ce13805b6f
--- a/includes/clientside/tinymce/plugins/paste/editor_plugin_src.js	Thu Jun 26 18:05:42 2008 -0400
+++ b/includes/clientside/tinymce/plugins/paste/editor_plugin_src.js	Thu Jun 26 20:55:13 2008 -0400
@@ -1,5 +1,5 @@
 /**
- * $Id: editor_plugin_src.js 738 2008-03-20 20:00:48Z spocke $
+ * $Id: editor_plugin_src.js 862 2008-06-02 20:09:06Z spocke $
  *
  * @author Moxiecode
  * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -103,7 +103,9 @@
 			return Event.cancel(e);
 		},
 
-		_insertText : function(content, bLinebreaks) { 
+		_insertText : function(content, bLinebreaks) {
+			content = this.editor.dom.encode(content);
+
 			if (content && content.length > 0) {
 				if (bLinebreaks) { 
 					// Special paragraph treatment 
@@ -154,7 +156,7 @@
 						content = content.replace(/\n/g, '<br />');
 					}
 				} 
-			
+
 				this.editor.execCommand("mceInsertRawHTML", false, content); 
 			}
 		},