Skip to content

Commit 37dc5e7

Browse files
bors[bot]notriddle
andcommitted
Merge #105
105: Release 2.0 r=Eijebong a=notriddle Co-authored-by: Michael Howell <[email protected]>
2 parents b3eb6fe + 8f13427 commit 37dc5e7

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22

33
*
44

5+
# 2.0.0
6+
7+
* Add "script" and "style" to the default set of [clean content tags]
8+
* Make all iterator-accepting APIs use `IntoIterator` and `Borrow`, so that you can pass slices directly to them.
9+
10+
[clean content tags]: https://docs.rs/ammonia/2.0.0/ammonia/struct.Builder.html#method.clean_content_tags
11+
512
# 1.2.0
613

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

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

1320
# 1.1.0
1421

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ammonia"
3-
version = "1.2.0"
3+
version = "2.0.0"
44
authors = ["Michael Howell <[email protected]>"]
55
description = "HTML Sanitization"
66
keywords = [ "sanitization", "html", "security", "xss" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To use `ammonia`, add it to your project's `Cargo.toml` file:
3232

3333
```toml
3434
[dependencies]
35-
ammonia = "1.2.0"
35+
ammonia = "2"
3636
```
3737

3838

0 commit comments

Comments
 (0)