grosser / html_helpers Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tma/html_helpers
Rails Plugin with Helpers to en- and decode HTML Entities
License: Other
This project forked from tma/html_helpers
Rails Plugin with Helpers to en- and decode HTML Entities
License: Other
HTML::EntityCoder ================= This plugin lets you encode and decode (UTF-8) strings using HTML entities. 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") %> => "Über geek" * decode_entities: Decodes a string with HTML entities into a string: >> <%= decode_entities("Über geek") %> => "Über geek" Using Anywhere ============== Now it's possible to include the helpers in other classes easily by just including HTML::EntityCoder in your class. If you *really* need to to use the helpers in a model you can do it like this: class Person < ActiveRecord::Base include HTML::EntityCoder end or a controller: class PersonController < ApplicationController include HTML::EntityCoder end etc. Note: Don't feed the helpers with anything else but UTF-8. If you really need to, convert your string to UTF-8 first using Iconv (http://www.ruby-doc.org/stdlib/libdoc/iconv/rdoc/index.html) A basic test unit is included. HTMLHelpers is copyright (c) 2006 Ruben Nine ([email protected]), released under the MIT license HTMLEntities is copyright (c) 2005-2006 Paul Battley, released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.