diff options
Diffstat (limited to 'app/helpers/glsa_helper.rb')
-rw-r--r-- | app/helpers/glsa_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/glsa_helper.rb b/app/helpers/glsa_helper.rb index dc8f160..48e4ef0 100644 --- a/app/helpers/glsa_helper.rb +++ b/app/helpers/glsa_helper.rb @@ -174,6 +174,10 @@ module GlsaHelper content end + def field_content(str) + sanitize(html_format(spelling(str)), :tags => %w[p ul li code span]) + end + private def shorten_args(text) text.gsub!(/# (.*)/) do |s| |