aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/title_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/title_helper.rb b/app/helpers/title_helper.rb
index 209cbc4a9..26d107002 100644
--- a/app/helpers/title_helper.rb
+++ b/app/helpers/title_helper.rb
@@ -2,12 +2,13 @@ module TitleHelper
def title(title = nil)
if title
- @title = title
+ @title = strip_tags(title)
+ title
else
@title
end
end
-
+
def title_tag(title, options = nil)
content_tag :h2, title(title).html_safe, options
end