Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 5006)
+++ /CKEditor/trunk/CHANGES.html	(revision 5007)
@@ -69,4 +69,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/4622">#4622</a> : Inserting table multiple times will corrupt the undo system.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4647">#4647</a> : [IE] Selection on an element within positioned container is lost after open context-menu then click one menu item.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4683">#4683</a> : Double-quote character in attribute values is not escaped in editor output.</li>
 		<li>Updated the following language files:<ul>
 			<li><a href="http://dev.fckeditor.net/ticket/5006">#5006</a> : Dutch;</li>
Index: /CKEditor/trunk/_source/core/htmlparser/basicwriter.js
===================================================================
--- /CKEditor/trunk/_source/core/htmlparser/basicwriter.js	(revision 5006)
+++ /CKEditor/trunk/_source/core/htmlparser/basicwriter.js	(revision 5007)
@@ -61,4 +61,7 @@
 		attribute : function( attName, attValue )
 		{
+			// Browsers don't always escape quote in attribute values. (#4683)
+			attValue = attValue.replace( /"/g, '&quot;' )
+
 			this._.output.push( ' ', attName, '="', attValue, '"' );
 		},
Index: /CKEditor/trunk/_source/plugins/htmlwriter/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/htmlwriter/plugin.js	(revision 5006)
+++ /CKEditor/trunk/_source/plugins/htmlwriter/plugin.js	(revision 5007)
@@ -174,4 +174,7 @@
 			if ( this.forceSimpleAmpersand )
 				attValue = attValue.replace( /&amp;/, '&' );
+
+			// Browsers don't always escape quote in attribute values. (#4683) 
+			attValue = attValue.replace( /"/g, '&quot;' )
 
 			this._.output.push( ' ', attName, '="', attValue, '"' );
