提交 240ac667 编写于 作者: T Timm

Updated Action View changelog entries with more information about the changes...

Updated Action View changelog entries with more information about the changes in the API. Removed mention of mentor (at his request).
上级 dd195575
......@@ -10,6 +10,29 @@
`assert_select_encoded`
`assert_select_email`
Note:
The substitution values syntax in `assert_select` has changed.
`assert_select "div#?", /\d+/`
`assert_select "div:match('id', ?)", /\d+/`
The attribute to match should be enclosed in quotes to avoid
issues with Nokogiri's css selector syntax parsing.
It is not necessary to do so with the question mark.
*Kasper Timm Hansen*
* Loofah replaces html-scanner in `sanitize_helper`
`sanitize` can now take a `Loofah::Scrubber` for powerful scrubbing.
[See some examples of scrubbers here](https://github.com/flavorjones/loofah#loofahscrubber)
`PermitScrubber` has been added. Set the attributes and tags you want to keep and get everything else stripped.
`TargetScrubber` has been added. Set the attributes and tags you want to have stripped and keep everything else.
The documentation for `PermitScrubber` and `TargetScrubber` explains how you can gain complete control over when and how elements should be stripped.
*Kasper Timm Hansen*
* Bring `cache_digest` rake tasks up-to-date with the latest API changes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册