# HG changeset patch # User Chris Cannam # Date 1301418235 -3600 # Node ID f1a12c3b45873674f763621afdd8821267a6b48a # Parent a89626bf10c7d1c3d101125115361518f1bff270 We don't actually want text formatting in our short summary, but we don't want wiki metacharacters either. So apply wiki formatting and then strip out the tags in a very naive fashion. diff -r a89626bf10c7 -r f1a12c3b4587 app/helpers/projects_helper.rb --- a/app/helpers/projects_helper.rb Tue Mar 29 11:14:27 2011 +0100 +++ b/app/helpers/projects_helper.rb Tue Mar 29 18:03:55 2011 +0100 @@ -127,7 +127,8 @@ else s << " " << l("field_is_private") << "" end - s << "
#{textilizable(project.short_description, :project => project)}
" unless project.description.blank? + desc = textilizable(project.short_description, :project => project).gsub(/<[^>]+>/, '') + s << "
#{desc}
" unless project.description.blank? s << "\n" ancestors << project end