HISTORY in sanitize-1.2.1.dev.20100124 vs HISTORY in sanitize-1.2.1.dev.20100329

- old
+ new

@@ -1,13 +1,16 @@ Sanitize History ================================================================================ Version 1.2.1 (git) - * Added an :escape_only config setting. If set to true, Sanitize will escape - non-whitelisted elements and their contents instead of removing them. * Added a :remove_contents config setting. If set to true, Sanitize will - remove the contents of non-whitelisted elements in addition to the elements - themselves. + remove the contents of all non-whitelisted elements in addition to the + elements themselves. If set to an Array of element names, Sanitize will + remove the contents of only those elements (when filtered), and leave the + contents of other filtered elements. [Thanks to Rafael Souza for the Array + option] + * Added an :output_encoding config setting to allow the character encoding for + HTML output to be specified. The default is 'utf-8'. * The environment hash passed into transformers now includes a :node_name item containing the lowercase name of the current HTML node (e.g. "div"). * Returning anything other than a Hash or nil from a transformer will now raise a meaningful Sanitize::Error exception rather than an unintended NameError.