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