apostrophecms / sanitize-html

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
MIT License
3.68k stars 349 forks source link

`parseStyleAttributes` is not present in 2.8.1 #604

Open bilobom opened 1 year ago

bilobom commented 1 year ago

parseStyleAttributes option from https://github.com/apostrophecms/sanitize-html/pull/596 is not present in 2.8.1 as noted in the changelog

To Reproduce

Step by step instructions to reproduce the behavior:

1.install latest version 2.8.1

  1. inspect the bundled index.js , the condition to check this option is not present

Expected behavior

parseStyleAttributes to be present in 2.8.1

Describe the bug

parseStyleAttributes option does nothing because is not present in bundle

Details

Screenshots image

boutell commented 1 year ago

This just hasn't shipped yet, it will ship Wednesday. We usually have an "UNRELEASED" section in our changelog to avoid confusion but bear with us this time.