Thread: Evernote
View Single Post
Posts: 219 | Thanked: 94 times | Joined on Nov 2009 @ Helsinki, Finland
#17
Originally Posted by conny View Post
Support for the sharing plugins
We could convert the Conboy notes to something which the Evernote webservice understands and send them through the Evernote sharing plugin. This way we could push Conboy notes to Evernote, but not more.
qwerty12 did a quick test and it looks like the Evernote service does not accept HTML but only PDF. HTML would be easy to create, PDF not that easy.
API documentation says it has limited support for XHTML:

Before submitting HTML content over the EDAM API the client application is expected to follow the following steps:

1.Convert the document into valid XML
2.Discard all tags that are not accepted by the ENML DTD
3.Convert tags to the proper ENML equivalent (e.g. BODY becomes EN-NOTE)
4.Validate against the ENML DTD
5.Validate href and src values to be valid URLs and protocols

ENML permits the use of the following standard XHTML elements:

A, ABBR, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BR, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DEL, DFN, DIV, DL, DT, EM, FONT, H1, H2, H3, H4, H5, H6, HR, I, IMG, INS, KBD, LI, MAP, OL, P PRE, Q, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP

The following XHTML elements are not included in ENML:

APPLET, BASE, BASEFONT, BGSOUND, BLINK, BODY, BUTTON, DIR, EMBED, FIELDSET, FORM, FRAME, FRAMESET, HEAD, HTML, IFRAME, ILAYER, INPUT, ISINDEX, LABEL, LAYER, LEGEND, LINK, MARQUEE, MENU, META, NOFRAMES, NOSCRIPT, OBJECT, OPTGROUP, OPTION, PARAM, PLAINTEXT, SCRIPT, SELECT, STYLE, TEXTAREA, XML

A number of attributes are also disallowed from the supported XHTML elements:

id, class, style, onclick, ondblclick, on* …, accesskey, data, dynsrc, tabindex

URLs within ENML must use one of the following protocols: http, https, file

Other potentially dangerous protocols (e.g. javascript, vbscript, etc.) are disallowed, and documents using these protocols will be rejected by the service.

CSS must be stripped from note contents. This includes removing all <style> elements, attributes, etc. The ENML DTD prohibits all CSS-related elements.
 

The Following 2 Users Say Thank You to naabi For This Useful Post: