loofah version 2.3.0 has been released!
This release contains new features and is *not* a security-related release.
* Home: https://github.com/flavorjones/loofah
* Docs: http://rubydoc.info/github/flavorjones/loofah/master/frames
* Mailing list: https://groups.google.com/forum/#!forum/loofah-talk
Loofah is a general library for manipulating and transforming HTML/XML
documents and fragments, built on top of Nokogiri.
Loofah excels at HTML sanitization (XSS prevention). It includes some nice
HTML sanitizers, which are based on HTML5lib's safelist, so it most likely
won't make your codes less secure. (These statements have not been
evaluated by Netexperts.)
ActiveRecord extensions for sanitization are available in the
[`loofah-activerecord` gem](
https://github.com/flavorjones/loofah-activerecord).
ยทยทยท
----
*# v2.3.0 / 2019-09-28*
*## Features*
* Expand set of allowed protocols to include `tel:` and `line:`. [#104,
#147]
* Expand set of allowed CSS functions. [related to #122]
* Allow greater precision in shorthand CSS values. [#149] (Thanks,
@danfstucky!)
* Allow CSS property `list-style` [#162] (Thanks, @jaredbeck!)
* Allow CSS keywords `thick` and `thin` [#168] (Thanks, @georgeclaghorn!)
* Allow HTML property `contenteditable` [#167] (Thanks, @andreynering!)
*## Bug fixes*
* CSS hex values are no longer limited to lowercase hex. Previously
uppercase hex were scrubbed. [#165] (Thanks, @asok!)
*## Deprecations / Name Changes*
The following method and constants are hereby deprecated, and will be
completely removed in a future release:
* Deprecate `Loofah::Helpers::ActionView.white_list_sanitizer`, please use
`Loofah::Helpers::ActionView.safe_list_sanitizer` instead.
* Deprecate `Loofah::Helpers::ActionView::WhiteListSanitizer`, please use
`Loofah::Helpers::ActionView::SafeListSanitizer` instead.
* Deprecate `Loofah::HTML5::WhiteList`, please use
`Loofah::HTML5::SafeList` instead.
Thanks to @JuanitoFatas for submitting these changes in #164 and for making
the language used in Loofah more inclusive.