The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-html-sanitizer

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 11 06:55:41 2024 UTC (5 weeks, 3 days ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, HEAD
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.3 (colored)

py-html-sanitizer: updated to 2.3.1

2.3.1

- Fixed an edge case where ``br`` tag attributes weren't removed if the br tag
  appears first.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 7 20:12:24 2024 UTC (2 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.3 (colored)

py-html-sanitizer: updated to 2.3.0

2.3 (2024-02-07)

- Avoided adding whitespace when merging tags of the same type.
- Updated the tests.
- Switched from black to the ruff formatter.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 27 20:21:00 2023 UTC (4 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Changes since 1.8: +5 -4 lines
Diff to previous 1.8 (colored) to selected 1.3 (colored)

py-html-sanitizer: updated to 2.2.0

2.2 (2023-07-03)

- Changed ``keep_normalized_whitespace`` to preserve whitespace at the tail of
  tags, not just between tags.
- Changed the parameters of ``normalize_whitespace_in_text_or_tail`` to be
  keyword-only.


2.1 (2023-06-29)

- Added a test for a type of misconfiguration.
- Changed the sanitizer configuration validation to not allow unexpected data
  types in ``tags``, ``empty``, ``separate``, ``whitespace`` and
  ``attributes``.


2.0 (2023-06-28)

- Raised the minimum Python version to 3.7. Added Python 3.10, 3.11.
- Raised the minimum lxml version to the current 4.9.1.
- Switched from Travis CI to GitHub actions. Added Python 3.9 to the CI
  matrix.
- Renamed the main branch to main.
- Switched to a declarative setup.
- Fixed a whitespace dependency in the testsuite.
- Switched to hatchling and ruff.
- Made behavior-altering arguments to ``normalize_overall_whitespace``
  keyword-only.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 30 16:43:32 2022 UTC (16 months, 2 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.7: +6 -5 lines
Diff to previous 1.7 (colored) to selected 1.3 (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 (17 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.3 (colored)

Reset MAINTAINER

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 4 20:54:55 2022 UTC (2 years, 3 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) to selected 1.3 (colored)

*: bump PKGREVISION for egg.mk 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 (5 years, 2 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) to selected 1.3 (colored)

py-html-sanitizer: updated to 1.6.4

1.6.4:
Bug fixes.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 9 20:52:52 2018 UTC (5 years, 4 months 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

1.6.3:
Bug fixes.

Revision 1.3 / (download) - annotate - [selected], Tue Aug 7 08:29:39 2018 UTC (5 years, 8 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

1.6:
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.

1.5:
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 (6 years 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) to selected 1.3 (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 (6 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to selected 1.3 (colored)

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 <webmaster@jp.NetBSD.org>