fix news title html
This commit is contained in:
parent
6ea576e293
commit
7c1ad3c11a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue