From 810ec643f8cd1ccd492d3691293a1fcfe682f8d6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 23 Jun 2008 17:06:58 +0000 Subject: [PATCH] Strip pre/code tags content from activity view events. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1579 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/projects_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 49a2e5721..5d51e7075 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -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