|
|
|
@ -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
|