X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fcore%2Fhtmlparser%2Fbasicwriter.js;h=3a0231c8d7423b34f247cee43c1b0ac06328e055;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=5d678912fbae134827cb2e51c56f4de9f06b90bf;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/core/htmlparser/basicwriter.js b/_source/core/htmlparser/basicwriter.js index 5d67891..3a0231c 100644 --- a/_source/core/htmlparser/basicwriter.js +++ b/_source/core/htmlparser/basicwriter.js @@ -60,9 +60,9 @@ CKEDITOR.htmlParser.basicWriter = CKEDITOR.tools.createClass( */ attribute : function( attName, attValue ) { - // Browsers don't always escape quote in attribute values. (#4683) + // Browsers don't always escape special character in attribute values. (#4683, #4719). if ( typeof attValue == 'string' ) - attValue = attValue.replace( /"/g, '"' ); + attValue = CKEDITOR.tools.htmlEncodeAttr( attValue ); this._.output.push( ' ', attName, '="', attValue, '"' ); },