File
entity-reference.rb
Path: entity-reference.rb
Modified: Fri Feb 02 00:02:27 HST 2007

entity-reference.rb

$Id: entity-reference.rb,v 1.1 2007/02/02 10:02:27 zunda Exp $

ruby-html-entities is a Ruby library to convert non-ASCII characters to character entity references in a hope that those characters are properly displayed in HTML pages of non-European encoding.

URL:palm-ja-proxy.sourceforge.jp/ruby-entity-reference/
Copyright:Copyright (C) 2007 zunda <zunda at freeshell.org>
License:GPL

Example

  require 'entity-reference'
  EntityReference.referenciate("<p>Gr\xfc\xdf Gott</p>", 'html', 'iso-8859-1')
  #=> '<p>Gr&uuml;&szlig; Gott</p>'
Required files

entity-reference/referenciate.rb