How to escape tokens in fields' help text

Created on 22 January 2023, over 1 year ago
Updated 23 July 2024, 3 months ago

Problem/Motivation

I would like to show the user the list of tokens that he can use in the form, in their help text, but the tokens are either replaced or invalid.
How to escape them?

Steps to reproduce

Add a text field to a content type or taxonomy term, and try to add anything between square brakets in it's help text.
I already tried "escaping" tokens with <code> html tags or quotes, without success.

Proposed resolution

Provide a way to escape tokens, ie. escape square brakets.
An alternative solution would be to allow the selection of text format for fields' help text in Drupal core, so that we can use plain text or a custom text format with token filter disabled.

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Documentation

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024