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

Refactor dropdown comments handling #17981

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cedric-anne
Copy link
Member

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

I extracted the comments computation from the Dropdown::getDropdownName() method and move it into a Dropdown::getDropdownComments() in order to not have a mix between raw data and HTML encoded data in the same method result.

  • Dropdown::getDropdownName() will now always return a raw value.
  • Dropdown::getDropdownComments() will always return a safe HTML string.

Still in draft, I have to update the test suite.

@cedric-anne cedric-anne added this to the 11.0.0 milestone Oct 1, 2024
@cedric-anne cedric-anne self-assigned this Oct 1, 2024
@cedric-anne cedric-anne mentioned this pull request Oct 1, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant