GTMNSStringHTMLAdditions 0.2.1

GTMNSStringHTMLAdditions 0.2.1

TestsTested
LangLanguage Obj-CObjective C
License Custom
ReleasedLast Release Oct 2015

Maintained by Greg J, Gregory Jeckell.



  • By
  • Gregory Jeckell

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 escape. 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 escape. 10 > 4 && 6 < 8.

Swift

let raw_html_string = "Here&apos;s a raw html string you&apos;ll want to escape. 10 &gt; 4 &amp;&amp; 6 &lt; 8."
let unescaped_string = raw_html_string.gtm_stringByUnescapingFromHTML()
println(unescaped_string) // Here's a raw html string you'll want to escape. 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.