lib/nitro/mixin/markup.rb in nitro-0.23.0 vs lib/nitro/mixin/markup.rb in nitro-0.24.0
- old
+ new
@@ -83,9 +83,10 @@
def clear(str)
end
def escape(str)
+ return nil unless str
CGI.escape(str.gsub(/ /, '_'))
end
def unescape(str)
CGI.unescape(str.gsub(/_/, ' '))