Tampering a node title requires special treatment of special characters

Created on 4 August 2023, over 1 year ago

Within my content type, I want to strip any trailing period from the title before submission. I accomplished this with:
Presave content entity
"Tamper: Characters to trim" (setting the new value in a token)
"Entity: set field value" (setting field "title" to the value of the new token)

In general, this works. But it does *NOT* work as expected if the title has special characters like quotes or ampersands.

What I enter:
This is my title.
What I correctly get:
This is my title

What I enter:
This is my "title" & test.
What I erroneously get:
This is my "title" & test
What I expect to get:
This is my "title" & test

πŸ› Bug report
Status

Closed: duplicate

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States seattlehimay

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

Comments & Activities

Production build 0.71.5 2024