fix news title html

This commit is contained in:
nccu 2015-01-13 10:35:42 +08:00
parent 6ea576e293
commit 7c1ad3c11a
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class NewsController < ApplicationController
}
end
{
"title" => a.title,
"title" => HTMLEntities.new.encode(a.title),
"subtitle" => a.subtitle,
"statuses" => statuses,
"category" => a.category.title,
@ -134,7 +134,7 @@ class NewsController < ApplicationController
}
end
{
"title" => a.title,
"title" => HTMLEntities.new.encode(a.title),
"subtitle" => a.subtitle,
"statuses" => statuses,
"category" => a.category.title,
@ -192,7 +192,7 @@ class NewsController < ApplicationController
"categories" => categories,
"data" => {
"categories-title" => t("news.categories"),
"title" => news.title,
"title" => HTMLEntities.new.encode(news.title),
"category" => news.category.title,
"category-link" => "/#{I18n.locale.to_s + page.url}/?category=#{news.category.to_param}",
"unit" => news.unit.name,