-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Shortcut in safe_html #66
Conversation
@reinhardt thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment:
To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
Check for signs of html or script, skip further processing if none are found. Saves processing time for lxml parsing and manipulation.
01b54a9
to
d5c91cf
Compare
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
@jenkins-plone-org please run jobs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There is now a similar check inside scrub_html, see plone/Products.PortalTransforms#66
Branch: refs/heads/master Date: 2024-08-02T16:20:19+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@2524e28 getVocabulary: Call scrub_html on individual items, but check for script/html first Fixes JSONDecodeError when terms contain incomplete HTML Files changed: A news/288.bugfix M plone/app/content/browser/vocabulary.py M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-06T08:23:33+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@6fb696a getVocabulary: Remove check for scrub_html There is now a similar check inside scrub_html, see plone/Products.PortalTransforms#66 Files changed: M plone/app/content/browser/vocabulary.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-07T13:11:41+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@b44635d Rename test method Co-authored-by: Maurits van Rees <[email protected]> Files changed: M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-08T08:47:57+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@6c1e1f2 Extend and explain test Co-authored-by: Maurits van Rees <[email protected]> Files changed: M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-08T12:17:01+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.content@0cebad3 Merge pull request #288 from plone/getVocabulary-incomplete-html getVocabulary: Call scrub_html on individual items Files changed: A news/288.bugfix M plone/app/content/browser/vocabulary.py M plone/app/content/tests/test_widgets.py
Branch: refs/heads/master Date: 2024-08-02T16:20:19+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@2524e28 getVocabulary: Call scrub_html on individual items, but check for script/html first Fixes JSONDecodeError when terms contain incomplete HTML Files changed: A news/288.bugfix M plone/app/content/browser/vocabulary.py M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-06T08:23:33+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@6fb696a getVocabulary: Remove check for scrub_html There is now a similar check inside scrub_html, see plone/Products.PortalTransforms#66 Files changed: M plone/app/content/browser/vocabulary.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-07T13:11:41+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@b44635d Rename test method Co-authored-by: Maurits van Rees <[email protected]> Files changed: M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-08T08:47:57+02:00 Author: Manuel Reinhardt (reinhardt) <[email protected]> Commit: plone/plone.app.content@6c1e1f2 Extend and explain test Co-authored-by: Maurits van Rees <[email protected]> Files changed: M plone/app/content/tests/test_widgets.py Repository: plone.app.content Branch: refs/heads/master Date: 2024-08-08T12:17:01+02:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.app.content@0cebad3 Merge pull request #288 from plone/getVocabulary-incomplete-html getVocabulary: Call scrub_html on individual items Files changed: A news/288.bugfix M plone/app/content/browser/vocabulary.py M plone/app/content/tests/test_widgets.py
Check for signs of html or script, skip further processing if none are found. Saves processing time for lxml parsing and manipulation.
See also plone/plone.app.content#288