projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Drop the contents of <script> and <style> tags when we strip them
[rails.git]
/
config
/
initializers
/
sanitize.rb
1
Sanitize::Config::OSM = Sanitize::Config::RELAXED.dup
2
3
Sanitize::Config::OSM[:add_attributes] = { 'a' => { 'rel' => 'nofollow' } }
4
Sanitize::Config::OSM[:remove_contents] = [ 'script', 'style' ]