Skip to content

Commit

Permalink
escape xml in note content
Browse files Browse the repository at this point in the history
  • Loading branch information
bencornelis committed Sep 15, 2015
1 parent c6840d2 commit fff5fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/agents/evernote_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def with_wrapped_content(params)
params[:content] =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" \
"<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">" \
"<en-note>#{params[:content]}</en-note>"
"<en-note>#{params[:content].encode(:xml => :text)}</en-note>"
end

params
Expand Down

0 comments on commit fff5fb6

Please sign in to comment.