evernote/evernote-cloud-sdk-ios — pull request #68 by davisjp1822 (2014-12-15 01:32:40+00:00)
Title: Exposed Class Method to create ENNoteContent object using ENML. Also add...

I found utility in having both of these methods exposed when trying to add resources to a note that was generated from sanitized HTML. Consider the following code:

```obj-c
NSString *enmlTagString = @"";
note.title = [messageParams objectForKey:@"subject"];
note.content = [ENNoteContent noteContentWithSanitizedHTML:renderedHTML];

//insert the en-media tags right before we close the enml
NSMutableString *content = [NSMutableString stringWithString:note.content.enml];
NSRange index = [note.content.enml rangeOfString:@""];
[content insertString:enMediaString atIndex:index.location];
note.content = [ENNoteContent noteContentWithENML:content];
```

If I try and add resources **not** using this method, the attachments never show-up in the resulting note (due to how the HTML is rendered into ENML?). Therefore, having the ability to directly edit the ENML allows me to insert resource links along with my HTML.

Thank you!