From 1cad1626e09fcf5fbe2a25a86528093032073962 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 29 Apr 2016 20:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 464b4fcc6..c57d2af86 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3085,7 +3085,9 @@ def sort_by_sticky topics topics = tmpTopics return topics -enddef strip_html(text,len=0,endss="...") +end + +def strip_html(text,len=0,endss="...") ss = "" if text.length>0 ss=text.gsub(/<\/?.*?>/, '').strip