Apostrophe displays as &#039

Created on 27 July 2022, over 2 years ago
Updated 12 November 2023, about 1 year ago

Problem/Motivation

When creating a webform that pulls in an address stored in CiviCRM via the Webform-CiviCRM integration, an apostrophe is displayed as &#039.

Steps to reproduce

  1. Create a form and turn on civicrm integration.
  2. Create a form that requires a user to select an existing contact using an Autocomplete field.
  3. Start typing and select an item from the dropdown that has an apostrophe in the address

Drupal version 7.90
CiviCRM 5.50.3
MySQL 5.7x
PHP 7.4x
Webform-CiviCRM 7.x-5.8

Submission results are fine:

I have tracked this down to the contact_component.inc file. wf_crm_format_contact has a default of $escape = TRUE. In the Autocomplete results area - Lines 705-710, unlike line 724, this default is not overidden with FALSE. Changing the default to FALSE addresses the issue.

🐛 Bug report
Status

Needs work

Version

6.0

Component

Webform/Drupal

Created by

🇬🇧United Kingdom chumkui

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024