From e44fc0aa1328549bc37964c21903b37b4534559b Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 7 Aug 2019 13:40:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E8=B0=83=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shixuns/index.json.jbuilder | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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