fix news title html
This commit is contained in:
parent
6ea576e293
commit
7c1ad3c11a
|
@ -74,7 +74,7 @@ class NewsController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"title" => a.title,
|
"title" => HTMLEntities.new.encode(a.title),
|
||||||
"subtitle" => a.subtitle,
|
"subtitle" => a.subtitle,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"category" => a.category.title,
|
"category" => a.category.title,
|
||||||
|
@ -134,7 +134,7 @@ class NewsController < ApplicationController
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"title" => a.title,
|
"title" => HTMLEntities.new.encode(a.title),
|
||||||
"subtitle" => a.subtitle,
|
"subtitle" => a.subtitle,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"category" => a.category.title,
|
"category" => a.category.title,
|
||||||
|
@ -192,7 +192,7 @@ class NewsController < ApplicationController
|
||||||
"categories" => categories,
|
"categories" => categories,
|
||||||
"data" => {
|
"data" => {
|
||||||
"categories-title" => t("news.categories"),
|
"categories-title" => t("news.categories"),
|
||||||
"title" => news.title,
|
"title" => HTMLEntities.new.encode(news.title),
|
||||||
"category" => news.category.title,
|
"category" => news.category.title,
|
||||||
"category-link" => "/#{I18n.locale.to_s + page.url}/?category=#{news.category.to_param}",
|
"category-link" => "/#{I18n.locale.to_s + page.url}/?category=#{news.category.to_param}",
|
||||||
"unit" => news.unit.name,
|
"unit" => news.unit.name,
|
||||||
|
|
Loading…
Reference in New Issue