diff --git a/app/views/shared/export/_plan_txt.erb b/app/views/shared/export/_plan_txt.erb
index ff2891e..45cd172 100644
--- a/app/views/shared/export/_plan_txt.erb
+++ b/app/views/shared/export/_plan_txt.erb
@@ -13,7 +13,7 @@
<% end %>
<% if @plan.description.present? %>
<%= _("Project abstract: ") %>
-<%= "\t" + @plan.description + "\n" %>
+<%= "\t" + strip_tags(@plan.description) + "\n" %>
<% end %>
<%= _("Last modified: ") + l(@plan.updated_at.to_date, formats: :short) %>
<%= _("Copyright information:") %>
@@ -32,14 +32,14 @@
<%# text in this case is an array to accomodate for option_based %>
<% if question[:text].length > 1 %>
<% question[:text].each do |txt| %>
-<%= txt + "\n" %>
+<%= "#{strip_tags(txt.gsub(/
/, '\n'))}\n" %>
<% end %>
<% else %>
-<%= question[:text][0].gsub(/
(\s|| |<\/td>| )*(<\/tr>| |
)/,"") + "\n" if question[:text].present? && question[:text][0].present? %>
+<%= "#{strip_tags(question[:text][0].gsub(/
(\s|| |<\/td>| )*(<\/tr>| |
)/,""))}\n" if question[:text].present? && question[:text][0].present? %>
<% end %>
<% end %>
<% answer = @plan.answer(question[:id], false) %>
- <% blank = (answer.present? && answer.is_valid?) ? answer.text.gsub(/<\/?p>/, '').gsub(/
/, '').chomp.blank? : true %>
+ <% blank = (answer.present? && answer.is_valid?) ? answer.text.gsub(/<\/?p>/, '').gsub(/
/, '\n').chomp.blank? : true %>
<% if blank && @show_unanswered %>
<%= " #{_("Question not answered.")}\n\n" %>
<% elsif !blank %>
@@ -48,7 +48,7 @@
<%= " #{opt.text}\n" %>
<% end %>
<% else %>
-<%= " #{answer.text.gsub(/<\/?p>/, '').gsub(/
/, '').chomp}\n\n" if answer.text.present? %>
+<%= " #{strip_tags(answer.text.gsub(/<\/?p>/, '').gsub(/
/, '\n').chomp)}\n\n" if answer.text.present? %>
<% end %>
<% end %>
<% end %>