X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b4165975078d6a520f80296fafea19b4c6b83bf5..c3bd1f113bfaefc29a48657eefcc87f95dc2da3c:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 22a7940eb..9c2b5fd3f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,5 @@ -# Methods added to this helper will be available to all templates in the application. module ApplicationHelper + def htmlize(text) + return sanitize(auto_link(simple_format(text), :urls)) + end end