From 245c705bac3723c439f2025a090ca751635c23c2 Mon Sep 17 00:00:00 2001 From: Ryan Grove Date: Sat, 7 Sep 2019 21:03:00 -0700 Subject: [PATCH] Release 5.1.0 --- HISTORY.md | 19 +++++++++++++++++++ lib/sanitize/version.rb | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 97f8bb3..feee8c6 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,24 @@ # Sanitize History +## 5.1.0 (2019-09-07) + +### Features + +* Added a `:parser_options` config hash, which makes it possible to pass custom + parsing options to Nokogumbo. [@austin-wang - #194][194] + +### Bug Fixes + +* Non-characters and non-whitespace control characters are now stripped from + HTML input before parsing to comply with the HTML Standard's [preprocessing + guidelines][html-preprocessing]. Prior to this Sanitize had adhered to [older + W3C guidelines][unicode-xml] that have since been withdrawn. [#179][179] + +[179]:https://github.com/rgrove/sanitize/issues/179 +[194]:https://github.com/rgrove/sanitize/pull/194 +[html-preprocessing]:https://html.spec.whatwg.org/multipage/parsing.html#preprocessing-the-input-stream +[unicode-xml]:https://www.w3.org/TR/unicode-xml/ + ## 5.0.0 (2018-10-14) For most users, upgrading from 4.x shouldn't require any changes. However, the diff --git a/lib/sanitize/version.rb b/lib/sanitize/version.rb index 1d02ffc..5ff7477 100644 --- a/lib/sanitize/version.rb +++ b/lib/sanitize/version.rb @@ -1,5 +1,5 @@ # encoding: utf-8 class Sanitize - VERSION = '5.0.0' + VERSION = '5.1.0' end