-
Notifications
You must be signed in to change notification settings - Fork 0
simple HTML sanitization for Rails, reinventing the wheel perhaps?
License
asquared/sanitizes_html
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SanitizesHtml ============= A very simple model-based plugin to remove HTML tags from an attribute. Requires Hpricot. Example ======= class Page < ActiveRecord::Base sanitizes_html :body, :allowed_tags => [ 'p', 'b', 'i', 'u', 'img' ], :safe_attributes => { 'img' => [ 'alt', 'src' ] } end Copyright (c) 2009 Andrew Armenia, released under the MIT license
About
simple HTML sanitization for Rails, reinventing the wheel perhaps?
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published