Releases: flavorjones/loofah
Releases · flavorjones/loofah
2.25.0 / 2025-12-15
2.25.0 / 2025-12-15
- Extract
Loofah::HTML5::Scrub.allowed_uri?which operates on a string. Previously this logic was coupled to the parsed tree in.scrub_uri_attribute. #300 @flavorjones - Tightened up how entities and control characters are handled when detecting allowed URIs. #301 @flavorjones
Full Changelog: v2.24.1...v2.25.0
2.24.1 / 2025-05-12
2.24.1 / 2025-05-12
Ruby support
- Import only what's needed from
cgifor support for Ruby 3.5 #296 @Earlopain
2.24.0 / 2024-12-24
2.24.0 / 2024-12-24
Added
- Built-in scrubber
:double_breakpointwhich sees<br><br>and wraps the surrounding content in<p>tags. #279, #284 @josecolella @torihuang
Improved
- Built-in scrubber
:targetblanknow skipsatags whosehrefattribute is an anchor link. Previously, allatags were modified to havetarget='_blank'. #291 @fnando
New Contributors
- @andrew made their first contribution in #289
- @fnando made their first contribution in #291
- @josecolella and @torihuang made their first contribution in #284
Full Changelog: v2.23.1...v2.24.0
2.23.1 / 2024-10-25
2.23.0 / 2024-10-24
2.23.0 / 2024-10-24
Added
New Contributors
- @m-nakamura145 made their first contribution in #280
- @lazyatom made their first contribution in #287
Full Changelog: v2.22.0...v2.23.0
2.22.0 / 2023-11-13
2.22.0 / 2023-11-13
Added
- A
:targetblankHTML scrubber which ensures all hyperlinks havetarget="_blank". [#275] @stefannibrasil and @thdaraujo - A
:noreferrerHTML scrubber which ensures all hyperlinks haverel=noreferrer, similar to the:nofollowand:noopenerscrubbers. [#277] @wynksaiddestroy
2.21.4 / 2023-10-10
2.21.3 / 2023-05-15
2.21.3 / 2023-05-15
- Quash "instance variable not initialized" warning in Ruby < 3.0. [#268] (Thanks, @dharamgollapudi!)
2.21.2 / 2023-05-11
2.21.2 / 2023-05-11
Dependencies
- Update the dependency on Nokogiri to be
>= 1.12.0. The dependency in 2.21.0 and 2.21.1 was left at>= 1.5.9but versions before 1.12 would result in aNameErrorexception. [#266]
2.21.1 / 2023-05-10
2.21.1 / 2023-05-10
Fixed
- Don't define
HTML5::DocumentandHTML5::DocumentFragmentwhen Nokogiri is< 1.14. In 2.21.0 these classes were defined wheneverNokogiri::HTML5was defined, but Nokogiri v1.12 and v1.13 do not support Loofah subclassing properly.