Ticket #4683: 4683.patch

File 4683.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/htmlwriter/plugin.js

     
    174174                        if ( this.forceSimpleAmpersand )
    175175                                attValue = attValue.replace( /&/, '&' );
    176176
     177                        // Browsers don't always escape quote in attribute values. (#4683)
     178                        attValue = attValue.replace( /"/g, '"' )
     179
    177180                        this._.output.push( ' ', attName, '="', attValue, '"' );
    178181                },
    179182
  • _source/core/htmlparser/basicwriter.js

     
    6060                 */
    6161                attribute : function( attName, attValue )
    6262                {
     63                        // Browsers don't always escape quote in attribute values. (#4683)
     64                        attValue = attValue.replace( /"/g, '"' )
     65
    6366                        this._.output.push( ' ', attName, '="', attValue, '"' );
    6467                },
    6568
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy