Skip to content

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

License

Notifications You must be signed in to change notification settings

stevelandeyasana/GTMNSStringAdditions-Carthage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.1%
  • Ruby 4.9%