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