From 5fe163b29f4517d65fe882a278e3353dad47c05f Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 27 Apr 2016 17:14:06 -0700 Subject: [PATCH] fix parse_strip call --- app/logical/d_text.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index 9d876990b..236a36650 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -323,6 +323,10 @@ class DText html.join("").html_safe end + def self.parse_strip(s) + strip(s) + end + def self.strip(s) s.gsub!(/[\r\n]+/m, " ") s.gsub!(/\[\/?(?:b|i|s|u|tn|tr|td|th|thead|tbody|quote|code|spoilers|spoiler|expand|table)\]/, "")