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:
parent
423f14183f
commit
edea7b6f0a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue