lib/vex/base/string/string_ext.rb in vex-0.2.8 vs lib/vex/base/string/string_ext.rb in vex-0.2.9

- old
+ new

@@ -15,9 +15,13 @@ def uri? !!(self =~ /^[a-z][a-z]+:/) end + def to_uri + URI.parse(self) + end + def unhtml return self if blank? s = Sanitize.clean(self) HTMLEntities.new.decode(s) end