Home > escape_attributes

escape_attributes

Escape_attributes is a project mainly written in Ruby, based on the MIT license.

Escape HTML for the specified attributes before saving them to the DB.

h1. EscapeAttributes

Escapes HTML for the specified attributes.

h2. Example


  escape_attributes :title, :description
  

h2. Version

Alpha, no options allowed yet.

h2. TODO

  • Allow options like @:if@, @:unless@
  • Tests? It's a really simple lib, not sure how could I test this.

h2. Author and license

Edgar J. Suárez, released under the MIT license

Previous:inject