Ticket #3785: 3785_2.patch

File 3785_2.patch, 845 bytes (added by Tobiasz Cudnik, 15 years ago)
  • _source/core/tools.js

     
    227227                                return span.getHtml();
    228228                        };
    229229
    230                         this.htmlEncode = ( standard( '>' ) == '>' ) ?
     230                        var fix1 = ( standard( '>' ) == '>' ) ?
    231231                                function( text )
    232232                                {
    233233                                        // WebKit does't encode the ">" character, which makes sense, but
     
    236236                                } :
    237237                                standard;
    238238
     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
    239251                        return this.htmlEncode( text );
    240252                },
    241253
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy