Strip pre/code tags content from activity view events.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1579 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-06-23 17:06:58 +00:00
parent dc57b06b6c
commit 810ec643f8
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module ProjectsHelper
end end
def format_activity_description(text) def format_activity_description(text)
h(truncate(text, 250)) h(truncate(text, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
end end
def project_settings_tabs def project_settings_tabs