Module: StringPatches

Defined in:
lib/imdb/patches.rb

Instance Method Summary collapse

Instance Method Details

#strip_tagsObject



8
9
10
# File 'lib/imdb/patches.rb', line 8

def strip_tags
  gsub(/<\/?[^>]*>/, "")
end

#unescape_htmlObject



4
5
6
# File 'lib/imdb/patches.rb', line 4

def unescape_html
  Iconv.conv("UTF-8", 'ISO-8859-1', CGI::unescapeHTML(self))
end