# if @fuzzy_searchs # json.keyword @fuzzy_searchs # json.total_count @fuzzy_searchs.blank? ? nil : @total_count # end json.total_count @total_count json.pagination @total_count > 16 ? true : false json.search_tags @search_tags json.shixuns do json.partial! 'shixun', locals: {shixuns: @shixuns} end s_s = '

作业要求:

     1、本作业要求分组完成一个大型程序

     2、请按任课教师要求分组

     3、每组建议为1-2人,

     4、每个人都需要完成必要的工作任务并及时提交个人的过程材料

     5、上传的单个文件大小不能超过2GB

' 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(" ", " ")