From 02808f0404258571b9d5de8c8aea5300b84a19b0 Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 21 Feb 2021 12:31:22 +0800 Subject: [PATCH] Fix bug. --- app/helpers/announcements_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/announcements_helper.rb b/app/helpers/announcements_helper.rb index 9d2edfc..ea2fa9b 100644 --- a/app/helpers/announcements_helper.rb +++ b/app/helpers/announcements_helper.rb @@ -437,6 +437,7 @@ module AnnouncementsHelper end end end + html.css("body")[0].inner_html = html.css("body")[0].inner_html.gsub("{{page-title}}","") html.css("body").to_html.html_safe end end