Skip to content

Commit

Permalink
Merge #105
Browse files Browse the repository at this point in the history
105: Release 2.0 r=Eijebong a=notriddle



Co-authored-by: Michael Howell <[email protected]>
  • Loading branch information
bors[bot] and notriddle committed Dec 28, 2018
2 parents b3eb6fe + 8f13427 commit 37dc5e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@

*

# 2.0.0

* Add "script" and "style" to the default set of [clean content tags]
* Make all iterator-accepting APIs use `IntoIterator` and `Borrow`, so that you can pass slices directly to them.

[clean content tags]: https://docs.rs/ammonia/2.0.0/ammonia/struct.Builder.html#method.clean_content_tags

# 1.2.0

* Recognize `action`, `formaction` and `ping` as [URL attributes] for scheme and origin filtering
* Add [`Builder::url_filter_map`] which allows URLs, both relative and absolute, to be pre-filtered

[URL attributes]: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
[`Builder::url_filter_map`]: https://docs.rs/ammonia/1.1/ammonia/struct.Builder.html#method.url_filter_map
[`Builder::url_filter_map`]: https://docs.rs/ammonia/1.2/ammonia/struct.Builder.html#method.url_filter_map

# 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ammonia"
version = "1.2.0"
version = "2.0.0"
authors = ["Michael Howell <[email protected]>"]
description = "HTML Sanitization"
keywords = [ "sanitization", "html", "security", "xss" ]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To use `ammonia`, add it to your project's `Cargo.toml` file:

```toml
[dependencies]
ammonia = "1.2.0"
ammonia = "2"
```


Expand Down

0 comments on commit 37dc5e7

Please sign in to comment.