JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / plugins / htmlwriter / plugin.js
index 4408402..46fadde 100644 (file)
@@ -175,8 +175,8 @@ CKEDITOR.htmlWriter = CKEDITOR.tools.createClass(
                        if ( typeof attValue == 'string' )\r
                        {\r
                                this.forceSimpleAmpersand && ( attValue = attValue.replace( /&/g, '&' ) );\r
-                               // Browsers don't always escape quote in attribute values. (#4683)\r
-                               attValue = attValue.replace( /"/g, '"' );\r
+                               // Browsers don't always escape special character in attribute values. (#4683, #4719).\r
+                               attValue = CKEDITOR.tools.htmlEncodeAttr( attValue );\r
                        }\r
 \r
                        this._.output.push( ' ', attName, '="', attValue, '"' );\r