去除调试代码

dev_hjm
daiao 6 years ago
parent 7d1c20866a
commit e44fc0aa13

@ -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)+/, "<br />").gsub("\t", " ").gsub("\n", "").gsub(" ", " ")
.gsub(/(<br\s?\/?>)+/, "<br />")
end
Loading…
Cancel
Save