mirror of
https://github.com/redmine/redmine.git
synced 2026-01-31 03:40:24 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user