Skip to content

Commit

Permalink
Wrapped note content in REXML::Text.new( ).to_s as in twitter_favorit…
Browse files Browse the repository at this point in the history
…es_to_evernote.rb. Should prevent errors in the future when content includes XML-forbidden characters such as '&' and ':'.
  • Loading branch information
HotFusionMan committed Jul 13, 2009
1 parent 7ec36eb commit 20f30b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkify_Evernote_notes.rb
Expand Up @@ -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

Expand Down

0 comments on commit 20f30b5

Please sign in to comment.