conred 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/conred.rb +2 -1
- data/lib/conred/version.rb +1 -1
- metadata +1 -1
data/lib/conred.rb
CHANGED
@@ -4,7 +4,8 @@ require "action_view"
|
|
4
4
|
module Conred
|
5
5
|
|
6
6
|
module Helpers
|
7
|
-
|
7
|
+
extend self
|
8
|
+
def sanitize_and_trim(text, word_count = nil, omission = '...')
|
8
9
|
action_view = ActionView::Base.new
|
9
10
|
text = action_view.strip_tags(text)
|
10
11
|
if word_count
|
data/lib/conred/version.rb
CHANGED