From 9ab5db8ee3945282231b9156c9b6112890b4ac5c Mon Sep 17 00:00:00 2001 From: kg Date: Thu, 10 Apr 2014 09:59:30 +0800 Subject: [PATCH] remove tags --- app/views/projects/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index a5f155058..c49b08b5d 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -27,7 +27,7 @@

- <%= h (truncate(e.event_description, :length => 240)) %> + <%= h(truncate(strip_tags(e.event_description).gsub(/ /,' '), length: 30, omission:'...')) %>