diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 14a508d40..7b3d7bbe2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2345,6 +2345,6 @@ module ApplicationHelper #将文本内的/n转换为
def text_format text - text.gsub("<","<").gsub(">",">").gsub("\n","
").html_safe + text.gsub("&","&").gsub("<","<").gsub(">",">").gsub("\n","
").html_safe end end