From a01942280e93772a0dd196912e50fac02db150b4 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 1 Aug 2016 10:36:35 -0300 Subject: [PATCH] should not escape html of body_ending hotspot --- app/views/layouts/application-ng.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application-ng.html.erb b/app/views/layouts/application-ng.html.erb index 11369f2..1f74c4c 100644 --- a/app/views/layouts/application-ng.html.erb +++ b/app/views/layouts/application-ng.html.erb @@ -86,9 +86,9 @@ <%= str = (@plugins.dispatch(:body_ending).map do |content| if content.respond_to?(:call) then - instance_exec(&content) + instance_exec(&content).html_safe else - content + content.html_safe end end) safe_join(str, "\n") -- libgit2 0.21.2