JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / core / htmlparser / basicwriter.js
index c2468ec..5d67891 100644 (file)
@@ -60,6 +60,10 @@ CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass(
                 */\r
                attribute : function( attName, attValue )\r
                {\r
+                       // Browsers don't always escape quote in attribute values. (#4683)\r
+                       if ( typeof attValue == 'string' )\r
+                               attValue = attValue.replace( /"/g, '"' );\r
+\r
                        this._.output.push( ' ', attName, '="', attValue, '"' );\r
                },\r
 \r