Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add euphorie.htmllaundry module #739

Merged
merged 12 commits into from
May 21, 2024
Merged

Add euphorie.htmllaundry module #739

merged 12 commits into from
May 21, 2024

Conversation

mauritsvanrees
Copy link
Contributor

The original htmllaundry package fails with lxml 5.2 (Plone 6.0.11).

Just thinking: alternatively we could fix htmllaundry and push a new version to PyPI. We do have access: https://pypi.org/project/htmllaundry/

We have already fixed this in at least one other project, and Alessandro and me identified at least one other project that uses it.

@mauritsvanrees
Copy link
Contributor Author

If someone gives me write access to https://github.com/syslabcom/htmllaundry I can push a change there and create a PR.

@pilz
Copy link
Member

pilz commented May 17, 2024

If someone gives me write access to https://github.com/syslabcom/htmllaundry I can push a change there and create a PR.

I added you!

And it *must* be a list with lxml 5.2 (new lxml_html_cleaner package), otherwise you get an error when instantiating the cleaner:

```
TypeError: Expected a collection, got str: link_target='_blank'
```
In lxml 5.2+ `from lxml.html.clean import Cleaner` still works, but only if the `lxml_html_clean` is available, and then it is a backwards compatibility import.
@mauritsvanrees
Copy link
Contributor Author

If someone gives me write access to https://github.com/syslabcom/htmllaundry I can push a change there and create a PR.

I added you!

Thanks @pilz.

Alternative PR created: syslabcom/htmllaundry#2

@ale-rt
Copy link
Member

ale-rt commented May 21, 2024

I would very much prefer going with this version rather than going on with the fork.

@ale-rt ale-rt merged commit 3ee4659 into main May 21, 2024
2 checks passed
@ale-rt ale-rt deleted the htmllaundry-refactor branch May 21, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants