dev_forum
p31729568 5 years ago
parent cf653740ba
commit 2f70b763b3

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