Google Toolbox for Mac string categories
To run the example project, clone the repo, and run pod install
from the Example directory first.
To use in a project just import/include the package and get started as follows:
NSString* raw_html_string = @"Here's a raw html string you'll want to unescape. 10 > 4 && 6 < 8.";
NSString* unescaped_string = [raw_html_string gtm_stringByUnescapingFromHTML];
NSLog(@"%@", unescaped_string); // Here's a raw html string you'll want to unescape. 10 > 4 && 6 < 8.
let raw_html_string = "Here's a raw html string you'll want to unescape. 10 > 4 && 6 < 8."
let unescaped_string = raw_html_string.gtm_stringByUnescapingFromHTML()
print(unescaped_string) // Here's a raw html string you'll want to unescape. 10 > 4 && 6 < 8.
GTMNSStringHTMLAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GTMNSStringHTMLAdditions"
GTMNSStringHTMLAdditions is available under the Apache license. See the LICENSE file for more info.