Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created May 2, 2014 14:42
Show Gist options
  • Save pbrewczynski/6f0ddfa11b0b32b65b1b to your computer and use it in GitHub Desktop.
Save pbrewczynski/6f0ddfa11b0b32b65b1b to your computer and use it in GitHub Desktop.
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"." withString:@"<span class='punctuation'>.</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"," withString:@"<span class='punctuation'>,</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"\"" withString:@"<span class='punctuation'>\"</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@";" withString:@"<span class='punctuation'>;</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@":" withString:@"<span class='punctuation'>:</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"!" withString:@"<span class='punctuation'>!</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"“" withString:@"<span class='punctuation'>“</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"“" withString:@"<span class='punctuation'>“</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"”" withString:@"<span class='punctuation'>”</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"?" withString:@"<span class='punctuation'>?</span>"];
wordDescriptor.wordString = [wordDescriptor.wordString stringByReplacingOccurrencesOfString:@"!" withString:@"<span class='punctuation'>!</span>"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment