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

Stephen Ollman’s picture

Would very much like to see this ability added to the field. I would like to put some structured text below the label.

Stephen Ollman’s picture

Hack, but would like to see the admin have the ability to configure via UI.

Line 347 - add allowed html elements to array.

$html = "

" . filter_xss($variables['raw_string'], array('a','b')) . "

";

  • Samvel committed 19e1c71 on 7.x-1.x
    Issue #2198493: Let admin specify which tags to allow
    
Samvel’s picture

Status: Active » Fixed

Hello 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.