html encoding fixed

This commit is contained in:
Harry Bomrah 2015-03-17 14:52:27 +08:00
parent 622dce7924
commit 41d7a03748
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace :announcement_link_widget do
index = common_tags_frontend.index{|t| t["tag-id"] == name} index = common_tags_frontend.index{|t| t["tag-id"] == name}
ctf = common_tags_frontend[index] ctf = common_tags_frontend[index]
if ann.title_translations[locale.to_s] != "" if ann.title_translations[locale.to_s] != ""
ctf["announcements"] << {"title" => ann.title_translations[locale.to_s],"link"=>OrbitHelper.widget_item_url(ann.to_param)} ctf["announcements"] << {"title" => HTMLEntities.new.encode(ann.title_translations[locale.to_s]),"link"=>OrbitHelper.widget_item_url(ann.to_param)}
end end
end end
end end