gjeck / GTMNSStringAdditions

NSString Category from Google's Toolbox for Mac (made into a cocoapod)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTMNSStringHTMLAdditions

CI Status Version License Platform

Google Toolbox for Mac string categories

Usage

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:

Objective-C

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.

Swift

let raw_html_string = "Here&apos;s a raw html string you&apos;ll want to unescape. 10 &gt; 4 &amp;&amp; 6 &lt; 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.

Installation

GTMNSStringHTMLAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GTMNSStringHTMLAdditions"

Author

Google

License

GTMNSStringHTMLAdditions is available under the Apache license. See the LICENSE file for more info.

About

NSString Category from Google's Toolbox for Mac (made into a cocoapod)

License:MIT License


Languages

Language:Objective-C 61.6%Language:Shell 35.3%Language:Ruby 3.1%