small fix

This commit is contained in:
Harry Bomrah 2017-08-04 15:39:47 +08:00
parent e38e23c72a
commit 8aa68a455f
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class EPapersController < ApplicationController
paper = Paper.find_by(:uid => params[:uid]) paper = Paper.find_by(:uid => params[:uid])
topics = paper.topics.collect do |topic| topics = paper.topics.collect do |topic|
desc = strip_tags(topic.content) desc = ActionView::Base.full_sanitizer.sanitize(topic.content)
{ {
"link_to_show" => OrbitHelper.url_to_show(topic.to_param) + "?method=showtopic", "link_to_show" => OrbitHelper.url_to_show(topic.to_param) + "?method=showtopic",
"episode" => topic.episode, "episode" => topic.episode,