diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 47a3b59ae..14a508d40 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("\n","
").html_safe + text.gsub("<","<").gsub(">",">").gsub("\n","
").html_safe end end