Sanitize History
================================================================================
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 `