lib/usaidwat/ext/string.rb in usaidwat-1.4.2 vs lib/usaidwat/ext/string.rb in usaidwat-1.4.3
- old
+ new
@@ -15,9 +15,9 @@
def highlight(pattern)
gsub(/#{pattern}/i) { |m| Rainbow(m).red }
end
- def transform_html_entities
+ def unescape_html
gsub(/>/, '>').gsub(/</, '<').gsub(/&/, '&')
end
end