Sanitize History
================================================================================
Version 2.0.6 (2013-07-10)
--------------------------
* Fixed: Version 2.0.5 inadvertently included some work-in-progress changes that
shouldn't have made their way into the master branch. This is what happens
when I release before coffee instead of after.
Version 2.0.5 (2013-07-10)
--------------------------
* Loosened the Nokogiri dependency back to >= 1.4.4 to allow Sanitize to coexist
in newer Rubies with other libraries that restrict Nokogiri to 1.5.x for 1.8.7
compatibility. Sanitize still no longer supports 1.8.7, but this should make
life easier for people who need those other libs.
Version 2.0.4 (2013-06-12)
--------------------------
* Added `Sanitize.clean_document`, which sanitizes a full HTML document rather
than just a fragment. [Ben Anderson]
* Nokogiri dependency bumped to 1.6.x.
* Dropped support for Ruby versions older than 1.9.2.
Version 2.0.3 (2011-07-01)
--------------------------
* Loosened the Nokogiri dependency to allow Nokogiri 1.5.x.
Version 2.0.2 (2011-05-21)
--------------------------
* Fixed a bug in which a protocol like "java\script:" would be translated to
"java%5Cscript:" and allowed through the filter when relative URLs were
enabled. This didn't actually allow malicious code to run, but it is
undesired behavior.
Version 2.0.1 (2011-03-16)
--------------------------
* Updated the protocol regex to anchor at the beginning of the string rather
than the beginning of a line. [Eaden McKee]
Version 2.0.0 (2011-01-15)
--------------------------
* The environment data passed into transformers and the return values expected
from transformers have changed. Old transformers will need to be updated.
See the README for details.
* Transformers now receive nodes of all types, not just element nodes.
* Sanitize's own core filtering logic is now implemented as a set of always-on
transformers.
* The default value for the `:output` config is now `:html`. Previously it was
`:xhtml`.
* Added a `:whitespace_elements` config, which specifies elements (such as
`
` and `
`) that should be replaced with whitespace when removed in order to preserve readability. See the README for the default list of elements that will be replaced with whitespace when removed. * Added a `:transformers_breadth` config, which may be used to specify transformers that should traverse nodes in a breadth-first mode rather than the default depth-first mode. * Added the `abbr`, `dfn`, `kbd`, `mark`, `s`, `samp`, `time`, and `var` elements to the whitelists for the basic and relaxed configs. * Added the `bdo`, `del`, `figcaption`, `figure`, `hgroup`, `ins`, `rp`, `rt`, `ruby`, and `wbr` elements to the whitelist for the relaxed config. * The `dir`, `lang`, and `title` attributes are now whitelisted for all elements in the relaxed config. * Bumped minimum Nokogiri version to 1.4.4 to avoid a bug in 1.4.2+ (issue #315) that caused `