Skip to content

Releases: rust-ammonia/ammonia

4.0.0

25 Mar 15:00
6a1f856
Compare
Choose a tag to compare
  • Update html5ever to 0.27
  • feature: change lifetimes on UrlRelative (breaking change)
  • chore: use the Display trait (and ToString) instead of an inherent to_string method (breaking change)
  • Security fixes are not backported to the 2.0 branch any more. Only the v3 and v4 branches are supported.

3.3.0

29 Nov 19:31
42ecc97
Compare
Choose a tag to compare
  • chore: bump MSRV to 1.60.0
  • docs: fix incorrect XSS example
  • feature: add UrlRelative::RewriteWithRoot

3.2.1

15 Aug 20:34
a9a687c
Compare
Choose a tag to compare

3.2.0

07 Apr 20:35
adb4faa
Compare
Choose a tag to compare
  • chore: bump MSRV to 1.49.0
  • chore: update to html5ever 0.26
  • chore: switch from lazy_static to once_cell
  • feature: add Builder::empty() constructor

3.1.4

16 Feb 20:53
e788bbb
Compare
Choose a tag to compare
  • chore: use #[non_exhaustive] instead of hidden variant for UrlRelative policy
  • chore: remove unnecessary dependency on third-party matches! macro

3.1.3

19 Jan 22:09
Compare
Choose a tag to compare
  • fix: incorrect FF/CR handling in clean_text
  • fix: split class name attribute by all ASCII whitespace, not just SP 0x20
  • docs: fix incorrect English in is_html documentation

2.1.4

19 Jan 22:08
Compare
Choose a tag to compare
  • fix: split class name attribute by all ASCII whitespace, not just SP 0x20 (backported from 3.1.3)

3.1.2

08 Jul 19:34
bcdf2d8
Compare
Choose a tag to compare
  • fix: unexpected namespace switches can allow XSS via svg/mathml parsing

3.1.1

05 Mar 02:25
0023088
Compare
Choose a tag to compare
  • fix: Crash on invalid URLs in some configurations (issue #136)

3.1.0

10 Mar 05:14
892da8a
Compare
Choose a tag to compare
  • feature: Whitelist generic attribute prefix
  • chore: Update html5ever to 0.25
  • feature: support adding attribute values to elements