Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In some cases the anchor tag is too restrictive for the 'Allow tags' value.
Maybe it should at least match the core #description FAPI functionality (which I believe uses the 'filtered_html' text format, by default -- I haven't investigated this deeply).
Another simple way to handle this would be to expose the list of tags as a configurable variable extra_field_description_tags
that would default to just <a>
, and one could override the value in settings.php.
Comments
Comment #1
Stephen OllmanWould very much like to see this ability added to the field. I would like to put some structured text below the label.
Comment #2
Stephen OllmanHack, but would like to see the admin have the ability to configure via UI.
Line 347 - add allowed html elements to array.
$html = "
";
Comment #4
Samvel CreditAttribution: Samvel commentedHello guys,
I added more allowed tags, which present in _field_filter_xss_allowed_tags().
If you will have some troubles with any tags, please not hesitate reopen ticket.