gjtorikian / html-pipeline

HTML processing filters and utilities
MIT License
2.27k stars 383 forks source link

UPGRADING: `TextFilter` not removed #397

Closed dentarg closed 9 months ago

dentarg commented 9 months ago

Still exist here? https://github.com/gjtorikian/html-pipeline/blob/v3.0.3/lib/html_pipeline/text_filter.rb#L4

dentarg commented 9 months ago

That upgrade guide also lists SanitizationFilter as removed and adds some words about that, but I can see SanitizationFilter in the code too: https://github.com/gjtorikian/html-pipeline/blob/f0da92bc84171939ca8981e7e199470c43861183/lib/html_pipeline/sanitization_filter.rb#L15

I'm super confused :) Maybe the guide needs more work?

gjtorikian commented 9 months ago

There used to be a separate SanitizationFilter, that's what that line was referring to. TextFilter was in fact kept, thanks!