Escaped string causes between buttons to show '&'

Created on 24 July 2023, over 1 year ago

Problem/Motivation

When creating a paragraph with an & symbol in the title and adding it to the button list, the paragraph title will be escaped causing it to show '&' in the title.

Steps to reproduce

Create paragagraph with '&' in the title.
Enable add in between buttons and show the paragraph with the '&' title on the buttons

Proposed resolution

On line 64 of paragraphs-features.add-in-between.js, change the argument from escaped '@' type to pass through '!' type, causing the HTML char to not be escaped. This shouldn't encompass any security issues, as HTML-tags (such as H3) are already be escaped before being passed to the title.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium mauro_

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

Comments & Activities

Production build 0.71.5 2024