Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Can I get the note's content without ENML(XHTML)?


  • Please log in to reply
4 replies to this topic

#1 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 16 August 2012 - 10:24 AM

Hi everybody!!

Have any way to get notes content with no ENML?

I just know getNoteSearchText(), but its method will return content and title.

I just need content, I don't need title.

I want the content with no image's hash and no audio's hash.

getNote() and getNoteCentent() will return content with enml and image's hash and no audio's hash.

Be clear to say, getNote() will return note's content with enml, but if I have <en-note> and <en-media> in the enml, I just need <en-note> and I don't need <en-media>.

Have any thought to solve this problem?

#2 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 17 August 2012 - 02:01 AM

nobody knows?

#3 Garrett

Garrett

  • Title: Member
  • Group: Evernote Employee
  • 40 posts

Posted 17 August 2012 - 05:57 AM

ENML tags are important components of the content, especially if you plan to allow users to create or update notes from your application. Notes without <en-note> bodies will fail validation and should not be sent to or expected from the server. If you want to display note content in your application without the ENML tags, you'll have to strip them out yourself. For an example, take a look at the feeds_evernote_sanitize_body() function in this Drupal project: http://drupalcode.or...evernote.module

It does not appear to cover all possible ENML tags (e.g., <en-todo>), but it should give you an idea how to proceed.

#4 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 17 August 2012 - 07:35 AM

thx friend, what does <en-todo> stand for? I don't know.

#5 spg SCOTT

spg SCOTT

  • Title: "There is no magic, only lost physics"
  • Group: Evernote Evangelist
  • 1,402 posts

Posted 17 August 2012 - 12:54 PM

thx friend, what does <en-todo> stand for? I don't know.


Check here:
http://dev.evernote..../ENML.php#added

en-todo is listed there.

In short, it is a checkbox included in a note.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote