about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:31:20 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-21 10:31:20 +0100
commit7e00a21ea6f76f8167f1070fbfe231bbd65c6cad (patch)
treef9dc54efab6e4fc905934786e468f14320fe4277 /app/helpers
parent19a259915eedcdff8c1e82f3b99a6249010b4b30 (diff)
Small optimizations in Atom feeds
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/atom_builder_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb
index da3a1a9b8..b9eb79fbd 100644
--- a/app/helpers/atom_builder_helper.rb
+++ b/app/helpers/atom_builder_helper.rb
@@ -40,7 +40,7 @@ module AtomBuilderHelper
   end
 
   def title(xml, title)
-    xml.title title
+    xml.title strip_tags(title || '').truncate(80)
   end
 
   def author(xml, &block)