Skip to content

[Bug] Apostrophe in question labels displayed as ' in the form HTML page #3213

@fpinto75015

Description

@fpinto75015

Steps to reproduce

  1. Create a form with a question label containing
    an apostrophe, for example: "Qu'est-ce que"
  2. Save the form
  3. Open the form page (the shared link that
    respondents use to fill in the form)

Observed behavior
The apostrophe character is rendered as the HTML
entity ' directly visible in the question label
on the form page itself, for example:
"Qu'est-ce que"

Expected behavior
The plain apostrophe character ' should be displayed
in the question label, not its HTML entity equivalent.

Possible cause
User input is being HTML-escaped when saved, but the
escaping is not reversed when rendering the form page.
A call to html_entity_decode() or equivalent unescaping
seems to be missing on the output rendering side.

Impact
Question labels containing apostrophes or other
punctuation are displayed with raw HTML entities,
which is confusing for respondents and makes the
form look broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't workingneeds infoNot enough information provided

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions