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.
Create a footnote with "Click me" as value.
When footnotes generates the link it becomes "Click-me".
Still use Html::cleanCssIdentifier() for fn_id and ref_id but only sanitize the displayed value with PlainTextOutput::renderFromHtml() (to keep preventing XSS attacks).
Active
4.0
Footnotes