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('&quot;', '"').gsub('&gt;', '>').gsub('&lt;', '<').gsub('&amp;', '&') + end end end # module ReVIEW