I guess goal names / titles should accept a & character
Everything after the "&" is scrapped when saving a goal.
2. Mikro: Klickar till etjänsten "Felanmälan&
When I try:
2. Mikro: Klickar till etjänsten "Felanmälan&syn"
The demo environment do not allow me to enter goals.
I'm trying to have ampersands and other special characters in the name of a goal
Matomo Version: 4.13.0
PHP Version: 7.4.32
Server Operating System: Ubuntu LTS
Browser: Brave (Chromium)
Operating System: Macos 12.6.2
The problem actually is not the ampersand. Goal names are limited to 50 chars. But special html chars like
& are stored html encoded as
So goal names that reaches that limit (after encoding the html chars) are truncated to 50 chars. This currently might also break those encoded characters as they might get cut off.
I guess in general we should store those names unencoded in that database and ensure the name is encoded whereever it is used. Might be related or solvable with #11786