mozilla / bleach

Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
https://bleach.readthedocs.io/en/latest/
Other
2.66k stars 250 forks source link

Fix linkify with character entities (#501) #692

Closed willkg closed 1 year ago

willkg commented 1 year ago

This fixes problems where serializing linkify output causes character entities in Characters tokens to be escaped.

Fixes #501 Fixes #670

willkg commented 1 year ago

@g-k This seems like the right thing to do. It copies some of the bits from the Cleaner over minus the sanitizing code. Does this raise any eyebrows for you?

willkg commented 1 year ago

Thank you!