Escaped quotes in add in between paragraphs labels

Created on 21 February 2023, almost 2 years ago

Problem/Motivation

When your paragraph label contains a quote, it ends up being escaped in the add in between buttons.

Steps to reproduce

  1. Create a paragraph type with a quote in its label
  2. Configure your paragraphs field to use the add in between feature

Proposed resolution

Fix Drupal.theme.paragraphsFeaturesAddInBetweenButton to use button.innerHTML instead of button.innerText so html entities escaped by Drupal.t() are displayed properly.
The output of Drupal.t() is considered safe so it should not cause security issues.

User interface changes

No more ' instead of quotes !

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇷France duaelfr Montpellier, France

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

Comments & Activities

Production build 0.71.5 2024