ENML-Converter is an iOS library to convert html to/from ENML, Evernote's XHTML format.
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects.
To install ENML-Converter with CocoaPods, the private CocoaPods repo jcccn must be configured.
For example, an available Podfile could be like this:
# The front repo is prior if conflicted
# [REQUIRED]CocoaPods private repo
source 'https://github.com/jcccn/PodSpecs.git'
# CocoaPods master repo
source 'https://github.com/CocoaPods/Specs.git'
platform :ios,'5.1.1'
# ignore all warnings from all pods
inhibit_all_warnings!
pod 'ENML-Converter'
After importing the header file with #import "EnmlConverter.h"
or #import <ENML-Converter/EnmlConverter.h>
, use the lib like this:
NSString *html = ...;
NSString *enml = [[EnmlConverter sharedInstance] convertToENML:html];
ENML-Converter is available under the MIT license. See the LICENSE file for more info.