fix title html
This commit is contained in:
parent
6b50167861
commit
59cf9f51e8
|
@ -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'),
|
||||
|
|
Reference in New Issue