From e36bfddf0f27345ad9058d8a2e65f81be9e07091 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 10 Dec 2015 01:33:25 +0800 Subject: [PATCH] fix for html tags double quotes --- app/controllers/ad_banners_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index f6499af..8970625 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -22,7 +22,7 @@ class AdBannersController < ApplicationController "height" => adbanner.height, "width" => adbanner.width, "caption" => caption, - "context" => b.context, + "context" => (b.context.tr('"',"'") rescue ""), "link" => b.out_link || "#", "target" => target }