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

Raw HTML shown in validation error dialog #2797

Open
FikriMilano opened this issue Feb 24, 2025 · 0 comments · May be fixed by #2798
Open

Raw HTML shown in validation error dialog #2797

FikriMilano opened this issue Feb 24, 2025 · 0 comments · May be fixed by #2798
Assignees
Labels
effort:xsmall Extra small effort - 1 day P2 Medium priority issue

Comments

@FikriMilano
Copy link
Collaborator

Describe the bug
questionnaire.item.text can contain HTML e.g. to bold the text. If that item fails validation, item.text will be displayed in the validation error dialog when user tries to submit. The HTML however, is shown raw, not rendered. It doesn't look good.

Component
SDC library

To Reproduce
Steps to reproduce the behavior:

  1. Have item.text contain <b>TEXT</b>
  2. Have that item fails validation
  3. Try to submit the form
  4. See validation error dialog showing the raw HTML

Expected behavior
2 options:

  1. Render the HTML
  2. Somehow remove the HTML from item.text

Screenshots

Image

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
N/A

Would you like to work on the issue?
Yes

@FikriMilano FikriMilano linked a pull request Feb 24, 2025 that will close this issue
7 tasks
@MJ1998 MJ1998 added P2 Medium priority issue effort:xsmall Extra small effort - 1 day labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:xsmall Extra small effort - 1 day P2 Medium priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants