Issue when linking to content with ampersands or single quotes in the title

Created on 19 April 2023, over 1 year ago
Updated 1 May 2023, over 1 year ago

The suggestion label and descriptions are HTML-escaped in the matcher plugins. This becomes an issue when the values are then used in the user interface other than the LinkIt suggestion list. For example in #2712951: Linkit for Link field the label is injected into the Title for a Link field.

As a result, the URL Title displays escaped html entities:
Target node title -> "test'it" will pass back in json suggestions like "test'it" and then fill into the link text field as "test'it" which should be "test'it"

Instead of take out the "Html::escape" from buildLabel function of all matcher classes I decide to add in decode handler via js

🐛 Bug report
Status

Closed: duplicate

Version

6.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024