dev_forum
p31729568 5 years ago
parent cf653740ba
commit 2f70b763b3

@ -39,6 +39,7 @@ module Util
end end
def extract_content(str) def extract_content(str)
return '' if str.blank?
str.gsub(/<\/?.*?>/, '').gsub(/[\n\t\r]/, '').gsub(/&nbsp;/, '') str.gsub(/<\/?.*?>/, '').gsub(/[\n\t\r]/, '').gsub(/&nbsp;/, '')
end end
end end
Loading…
Cancel
Save