The NetBSD Project

CVS log for pkgsrc/textproc/py-html-sanitizer/Makefile

[BACK] Up to [] / pkgsrc / textproc / py-html-sanitizer

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 30 16:43:32 2022 UTC (2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored)

py-html-sanitizer: updated to 1.9.3

1.9 (2020-01-20)

Added Python 3.8 to the CI matrix.
Be able to keep the <style> tag by adding it to tags.
Added a style check to the CI matrix.

1.8 (2019-11-21)

Actually added support for customizing lxml's autolinking behavior using a dictionary argument.
Stopped removing explicitly allowed attributes.
Removed id from allowed attributes of <a> tags to provide an additional layer of defense against DOM clobbering attacks.
Added an element preprocessor which assigns the id value to the name attribute of anchors if name isn't set or empty. This should provide additional backwards compatibility making the id removal less of a problem when using named anchors.

1.7 (2019-02-19)

Added a system check which validates sanitizer configurations early when using Django.
Fixed an edge case where passing in an empty allowed tags list would unexpectedly and silently not remove any tags at all (because that's the way lxml's cleaner works).
Changed the sanitizer tags, empty and separate options to also accept any iterable, not just sets.
Changed the lru_cache import in the Django module to try functools first.
Fixed the tag merging to also check tags in empty. This means that e.g. consecutive <hr> tags are also merged now when using the default settings.
Made it possible to override the set of tags processed as whitespace. The default set is {"br"} which preserves the current behavior of stripping breaks from the beginning or end of tags' content.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 9 13:14:17 2022 UTC (2 months, 3 weeks ago) by joerg
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)


Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 4 20:54:55 2022 UTC (13 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

*: bump PKGREVISION for users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 12 16:39:34 2019 UTC (3 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

py-html-sanitizer: updated to 1.6.4

Bug fixes.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 9 20:52:52 2018 UTC (4 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

py-html-sanitizer: updated to 1.6.3

Bug fixes.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 7 08:29:39 2018 UTC (4 years, 6 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

py-html-sanitizer: updated to 1.6.1

Fixed another edge case where a tag which is allowed to be empty was erroneously removed if it contained not only whitespace but also a <br> tag.

Fixed a few edge whitespace normalization edge cases and a bug where removing an empty tag removed all whitespace.
Added black for automatically formatting the Python code.
By default, links with target="_blank" get an additional rel="noopener" attribute (Article by Mathias Bynens). If you're overriding the list of allowed attributes for anchor tags you must add rel to your list.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 5 13:11:32 2018 UTC (4 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Update to py-html-sanitzer-1.4.0:

- don't drop <form>-related elements in the lxml cleaner
- allow better control of element merging
- fix some more cases for nested paragraphs

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 13 21:00:03 2018 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1

Add py-html-sanitizer-1.3.0:

html-sanitizer is a whitelist-based and very opinionated HTML sanitizer
that can be used both for untrusted and trusted sources. It attempts to
clean up the mess made by various rich text editors and or copy-pasting
to make styling of webpages simpler and more consistent. It builds on the
excellent HTML cleaner in lxml to make the result both valid and safe.

It goes further than pure tag filtering by transforming the HTML
fragments to normalize formatting and drop redundant or pointless tags.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>