diff --git a/app/views/shixuns/index.json.jbuilder b/app/views/shixuns/index.json.jbuilder index 5279d309d..d6cf7f4d1 100644 --- a/app/views/shixuns/index.json.jbuilder +++ b/app/views/shixuns/index.json.jbuilder @@ -7,10 +7,4 @@ json.pagination @total_count > 16 ? true : false json.search_tags @search_tags json.shixuns do json.partial! 'shixun', locals: {shixuns: @shixuns} -end - -s_s = '' - -json.html_contents sanitize(s_s, tags: %w(img a table tr td tbody pre), attributes: %w(src href target style)).gsub(">\n<", "><") - .gsub(/^\n/, "").gsub("    ", "").gsub(/(\n)+/, "
").gsub("\t", " ").gsub("\n", "").gsub(" ", " ") - .gsub(/()+/, "
") \ No newline at end of file +end \ No newline at end of file