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

Derive "safeHtml" from all "bodyHtml" values #3168

Merged
merged 2 commits into from Jul 13, 2023
Merged

Conversation

tillprochaska
Copy link
Contributor

@tillprochaska tillprochaska commented Jun 21, 2023

Please do not merge this. This is currently blocked until alephdata/followthemoney#1148 is merged and released.


Fixes #3163.

@tillprochaska tillprochaska linked an issue Jul 6, 2023 that may be closed by this pull request
6 tasks
@tillprochaska tillprochaska removed a link to an issue Jul 6, 2023
6 tasks
@tillprochaska tillprochaska marked this pull request as ready for review July 9, 2023 19:42
source_url = proxy.first("sourceUrl", quiet=True)
encoding = proxy.first("encoding", quiet=True)
entity["safeHtml"] = sanitize_html(html, source_url, encoding=encoding)
entity["safeHtml"] = [
sanitize_html(value, source_url, encoding=encoding) for value in html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a utility function that we wrote, or a third party created?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

We need this fix to preserve the original order of email parts: alephdata/followthemoney#1148
@tillprochaska tillprochaska merged commit 2a56b31 into develop Jul 13, 2023
2 checks passed
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.

BUG: safeHtml is derived only from first value of bodyHtml
3 participants