fix title html

This commit is contained in:
nccu 2015-01-13 10:34:56 +08:00
parent 6b50167861
commit 59cf9f51e8
1 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ class AnnouncementsController < ApplicationController
}
end
{
"title" => a.title,
"title" => HTMLEntities.new.encode(a.title),
"subtitle" => a.subtitle,
"statuses" => statuses,
"category" => a.category.title,
@ -135,7 +135,7 @@ class AnnouncementsController < ApplicationController
}
end
{
"title" => a.title,
"title" => HTMLEntities.new.encode(a.title),
"subtitle" => a.subtitle,
"statuses" => statuses,
"category" => a.category.title,
@ -218,7 +218,7 @@ class AnnouncementsController < ApplicationController
"tag-cloud" => tags,
"data" => {
"tag-cloud-title" => t("announcement.tag_cloud"),
"title" => announcement.title,
"title" => HTMLEntities.new.encode(announcement.title),
"categories-title" => t("announcement.categories"),
"update_user" => update_user,
"updated_at" => announcement.postdate.strftime('%Y-%m-%d %H:%M'),