Decode and encode HTML character entities.
CocoaPods is the recommended way to add NSString-HTML
to your project.
- Add a pod entry for NSString-HTML to your Podfile:
pod 'NSString-HTML', :git => 'https://github.com/NZN/NSString-HTML'
- Install the pod(s) by running :
pod install
Alternatively you can directly add source files to your project.
- Download the latest code version or add the repository as a git submodule to your git-tracked project.
- Open your project in Xcode, then drag and drop all files at
NSString-HTML
folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
NSString *encodedString = @"E-mail inválido.";
NSString *decoded = [encodedString decodeHTMLCharacterEntities];
This code is distributed under the terms and conditions of this copyright license.
A brief summary of each NSString-HTML release can be found on the wiki.