Permalink
Browse files

Wrapped note content in REXML::Text.new( ).to_s as in twitter_favorit…

…es_to_evernote.rb. Should prevent errors in the future when content includes XML-forbidden characters such as '&' and ':'.
  • Loading branch information...
1 parent 7ec36eb commit 20f30b518263eddcfb533636ca789f5daab16647 @HotFusionMan committed Jul 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 linkify_Evernote_notes.rb
@@ -21,7 +21,7 @@
updated_note = Evernote::EDAM::Type::Note.new
updated_note.guid = note.guid
updated_note.title = note.title
- updated_note.content = build_Evernote_note_content( linkify( content ) )
+ updated_note.content = build_Evernote_note_content( linkify( REXML::Text.new( content ).to_s ) )
updated_note.created = note.created
updated_note.updated = Time.now.to_i * 1000

0 comments on commit 20f30b5

Please sign in to comment.