22 filesupdated Jun 24, 2026
files10Download
./libJun 24, 2026./specJun 24, 2026.gitignoreJun 24, 2026CHANGELOGJun 24, 2026init.rbJun 24, 2026install.rbJun 24, 2026MIT-LICENSEJun 24, 2026RakefileJun 24, 2026READMEJun 24, 2026uninstall.rbJun 24, 2026README
= Aqueduct
+Aqueduct+ performs sandboxing on HTML, CSS and Embeds.
To install, do:
script/plugin install git@github.com:namor/aqueduct.git
== HTML sandboxing
- Append something in front of id's
- Rails sanitization: Removes bad HTML with Rails's built-in sanitize method. Bad tags are removed completely, including their content.
== Usage
class Comment < ActiveRecord::Base html_sanitizer :field_name, :append => "sandbox" #=> id's will be appended with sandbox_ end
== CSS sandboxing == Usage
class Comment < ActiveRecord::Base css_sanitizer :field_name, :append => "network_" #=> CSS selectors will be appended with #network_ end
== Unique features
- Rails 2.1-ready.
- It works with migrations. Columns are fetched when model is saved, not when the class is loaded.
== TODO
- Option to prevent XML namespaced tags from being stripped
- Dynamic :append option
== Credits
== License
MIT License, just like Rails