Bug 316965, importing bookmarks from the fox brings apostrophes in as &#39;. Seek and destroy, or find and replace. Patch by Chris Lawson <bugzilla@chrislawson.net>. Camino-only-npotdb. r=pink

This commit is contained in:
mark%moxienet.com 2005-12-01 22:18:24 +00:00
Родитель 389ab1d43b
Коммит d9d0acce6c
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -233,6 +233,8 @@
[dirtyStringMutant replaceOccurrencesOfString:@"&gt;"withString:@">" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
[dirtyStringMutant replaceOccurrencesOfString:@"&mdash;"withString:@"-" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
[dirtyStringMutant replaceOccurrencesOfString:@"&apos;"withString:@"'" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
// fix import from old Firefox versions, which exported &#39; instead of a plain apostrophe
[dirtyStringMutant replaceOccurrencesOfString:@"&#39;"withString:@"'" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
return [dirtyStringMutant stringByRemovingCharactersInSet:[NSCharacterSet controlCharacterSet]];
}