Ticket #3785: 3785_2.patch
File 3785_2.patch, 845 bytes (added by , 15 years ago) |
---|
-
_source/core/tools.js
227 227 return span.getHtml(); 228 228 }; 229 229 230 this.htmlEncode= ( standard( '>' ) == '>' ) ?230 var fix1 = ( standard( '>' ) == '>' ) ? 231 231 function( text ) 232 232 { 233 233 // WebKit does't encode the ">" character, which makes sense, but … … 236 236 } : 237 237 standard; 238 238 239 var fixNbsp = / /g; 240 var fix2 = ( standard( ' ' ) == ' ' ) ? 241 function( text ) 242 { 243 // #3785 244 // IE8 returns changes spaces (>= 2) to 245 return fix1( text ).replace( fixNbsp, ' ' ); 246 } : 247 fix1; 248 249 this.htmlEncode = fix2; 250 239 251 return this.htmlEncode( text ); 240 252 }, 241 253