Ticket #5096: 5096.patch
File 5096.patch, 826 bytes (added by , 13 years ago) |
---|
-
_source/plugins/htmlwriter/plugin.js
171 171 */ 172 172 attribute : function( attName, attValue ) 173 173 { 174 if ( this.forceSimpleAmpersand )175 attValue = attValue.replace( /&/, '&' );176 174 177 // Browsers don't always escape quote in attribute values. (#4683)178 175 if ( typeof attValue == 'string' ) 176 { 177 this.forceSimpleAmpersand && ( attValue = attValue.replace( /&/g, '&' ) ); 178 // Browsers don't always escape quote in attribute values. (#4683) 179 179 attValue = attValue.replace( /"/g, '"' ) 180 } 180 181 181 182 this._.output.push( ' ', attName, '="', attValue, '"' ); 182 183 },