HTML Helpers plugin

Plugin details

This plugin lets you encode and decode (UTF-8) strings using HTML entities.

Websitehttp://www.leftbee.net/ Repositoryhttp://svn.bountysource.com/leftbee-plugins/html_helpers Author Ruben Nine Tags HTML, utf8 LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.bountysource.com/leftbee-plugins/html_helpers

Two new methods will be automatically available in your views:

encode_entities: Encodes a string into a string with HTML entities:

>> <%= encode_entities("über geek") %>
=> "&Uuml;ber geek"


decode_entities: Decodes a string with HTML entities into a string:

>> <%= decode_entities("&Uuml;ber geek") %>
=> "über geek"

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 9 months ago