Closed (fixed)
Project:
Better Field Descriptions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Oct 2015 at 00:35 UTC
Updated:
20 Oct 2017 at 10:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mchampsee commentedThe problem is that when the description field is populated it uses the filter_xss function which, by default, only allows
'a', 'em', 'strong', 'cite', 'blockquote', 'code', 'ul', 'ol', 'li', 'dl', 'dt', 'dd'. I changed that to the filter_xss_admin function which is more permissive and allows all the safe tags. Alternatively, I could also implement the text formats system that is otherwise used in Drupal (for instance, in the Body field).Comment #3
mchampsee commentedComment #4
mchampsee commentedComment #5
8ballsteve commentedHi @mchampsee - I noted the same issue; seems to me this should follow the same principal as the core field description implementation.
see attached patch.
Comment #6
jaysonjaynes commentedWas wondering if this will be incorporated into a future release or if there's a patch for the 7.x-1.2?
Comment #7
mchampsee commented@8ballsteve - That patch looks good to me. I'm going to RTBC.
Comment #8
yogeshmpawarChecking the patch
Comment #10
yogeshmpawarThanks @8ballsteve, @mchampsee for the patch.
Committed & Pushed to 7.x-1.x