Commit 810ec643 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Strip pre/code tags content from activity view events.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1579 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent dc57b06b
......@@ -30,7 +30,7 @@ module ProjectsHelper
end
def format_activity_description(text)
h(truncate(text, 250))
h(truncate(text, 250).gsub(%r{<(pre|code)>.*$}m, '...'))
end
def project_settings_tabs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment