has_meta 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/has_meta.rb +2 -1
- data/lib/has_meta/version.rb +1 -1
- metadata +1 -1
data/lib/has_meta.rb
CHANGED
@@ -20,9 +20,10 @@ module HasMeta
|
|
20
20
|
else
|
21
21
|
field = [*fields].detect{|f| send(f).present?}
|
22
22
|
return nil if field.nil?
|
23
|
-
str = send(field)
|
23
|
+
str = send(field)
|
24
24
|
end
|
25
25
|
|
26
|
+
str = str.to_s.strip
|
26
27
|
str.gsub!(' ', ' ')
|
27
28
|
str.gsub!(/<.*?>/, '')
|
28
29
|
str = ::CGI::unescapeHTML(str)
|
data/lib/has_meta/version.rb
CHANGED