1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Fix order to match options order

This commit is contained in:
yui-knk 2015-06-07 22:07:12 +09:00
parent 423f14183f
commit edea7b6f0a

View file

@ -1428,7 +1428,7 @@ This sanitize helper will HTML encode all tags and strip all attributes that are
sanitize @article.body
```
If either the `:attributes` or `:tags` options are passed, only the mentioned tags and attributes are allowed and nothing else.
If either the `:attributes` or `:tags` options are passed, only the mentioned attributes and tags are allowed and nothing else.
```ruby
sanitize @article.body, tags: %w(table tr td), attributes: %w(id class style)