Ruby on Rails
HTML Helpers

Working with HTML entities on your views/helpers couldn’t be easier.
Just drop this plugin on your vendor/plugins directory and you will have access to some new helpers: encode_entities and decode_entities.

Using it:

Encoding a UTF-8 string into a string with HTML entities:
<%= encode_entities(“Über geek”) >

Returns: &Uuml;ber geek

Decoding a string with HTML entities into a UTF-8 string:
<%= decode_entities(”&Uuml;ber geek”) >

Returns: Über geek

Installing it:

script/plugin install http://svn.bountysource.com/leftbee-plugins/html_helpers_

.. or ..

script/plugin install -x http://svn.bountysource.com/leftbee-plugins/html_helpers_

(To set svn externals, which only makes sense if you keep your project under Subversion)