lib/review/htmlutils.rb in review-0.6.0 vs lib/review/htmlutils.rb in review-0.9.0
- old
+ new
@@ -20,8 +20,13 @@
def escape_html(str)
t = ESC
str.gsub(/[&"<>]/) {|c| t[c] }
end
+
+ def unescape_html(str)
+ # FIXME better code
+ str.gsub('"', '"').gsub('>', '>').gsub('<', '<').gsub('&', '&')
+ end
end
end # module ReVIEW