Commit 440535cf852b1fc56f51327842caa9236905ad7d
1 parent
25018e09
Exists in
master
and in
28 other branches
convert-macro: unescaping html converted by macros
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
@@ -1391,7 +1391,7 @@ module ApplicationHelper | @@ -1391,7 +1391,7 @@ module ApplicationHelper | ||
1391 | result = @plugins.parse_macro(macro_name, macro, source) | 1391 | result = @plugins.parse_macro(macro_name, macro, source) |
1392 | macro.content = result.kind_of?(Proc) ? self.instance_eval(&result) : result | 1392 | macro.content = result.kind_of?(Proc) ? self.instance_eval(&result) : result |
1393 | end | 1393 | end |
1394 | - doc.xpath('//body/*').to_s | 1394 | + CGI.unescapeHTML(doc.xpath('//body/*').to_s) |
1395 | end | 1395 | end |
1396 | 1396 | ||
1397 | def default_folder_for_image_upload(profile) | 1397 | def default_folder_for_image_upload(profile) |