HTMLEntities is a simple library to facilitate encoding and decoding of named (ý and so on) or numerical ({ or Ī) entities in HTML and XHTML documents. WWW: http://rubyforge.org/projects/htmlentities/