Ticket #2436: fck_paste.diff

File fck_paste.diff, 882 bytes (added by Simon Beasley, 16 years ago)

Diff file that works for us.

  • .html

    old new  
    294294
    295295                // Remove empty tags (three times, just to be sure).
    296296                // This also removes any empty anchor
    297                 html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
    298                 html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
    299                 html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, '' ) ;
     297                html = html.replace(/<([^\s>]+)(\s[^>]*)?><\/\1>/g, '');
     298                html = html.replace(/<([^\s>]+)(\s[^>]*)?><\/\1>/g, '');
     299                html = html.replace(/<([^\s>]+)(\s[^>]*)?><\/\1>/g, '');
     300               
     301                html = html.replace(/<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, ' ');
     302                html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, ' ' ) ;
     303                html = html.replace( /<([^\s>]+)(\s[^>]*)?>\s*<\/\1>/g, ' ' ) ;
    300304        }
    301305
    302306        return html ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy