Don't remove spaces and special characters in footnotes value

Created on 14 April 2025, 12 days ago

Problem/Motivation

I know most websites use numeric values but on one of our websites we need to use text values.
The problem is these values are sanitized with Html::cleanCssIdentifier(), which is confusing for users.

Steps to reproduce

Create a footnote with "Click me" as value.
When footnotes generates the link it becomes "Click-me".

Proposed resolution

Still use Html::cleanCssIdentifier() for fn_id and ref_id but only sanitize the displayed value with PlainTextOutput::renderFromHtml() (to keep preventing XSS attacks).

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

4.0

Component

Footnotes

Created by

🇫🇷France prudloff Lille

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024