|
$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 |
require 'entity-reference' EntityReference.referenciate("<p>Gr\xfc\xdf Gott</p>", 'html', 'iso-8859-1') #=> '<p>Grüß Gott</p>'
Required files |