use kernel MemberHelper nl2br

This commit is contained in:
chiu 2023-09-10 00:50:01 +00:00
parent 5e2a171e94
commit 42ed5adbd8
1 changed files with 0 additions and 4 deletions

View File

@ -87,8 +87,4 @@ class WebResourcesController < ApplicationController
"extras" => {"widget-title"=>t(:web_resource),"more_url" => OrbitHelper.widget_more_url}
}
end
def nl2br(val)
val.gsub(/\r\n/, '<br />').html_safe
end
end