Html should be decoded after translatio

Created on 21 February 2025, about 2 months ago

Problem/Motivation

Html entities don't get decoded after translation which will create issues in plane text fields.

Steps to reproduce

  • On a site with English and French installed create an english node with the title "The Drupal Association".
  • Use Atomatic Translation to create the french version

The title of the new node will be "L'association Drupal"

Proposed resolution

Use Drupal\Component\Utility\Html::decodeEntities() on the returned translation.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇵🇹Portugal kallado

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

Comments & Activities

Production build 0.71.5 2024