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.
I'd like to be able to pass in pre-rendered HTML that I've already prepared in a preprocess function.
In bef_checkbox(), the label text is currently being run through check_plain(). Is there any reason we shouldn't use filter_xss_admin() instead?
Comment | File | Size | Author |
---|---|---|---|
#1 | better_exposed_filters-1885548-HTML_in_labels.patch | 566 bytes | Les Lim |
Comments
Comment #1
Les LimPatch attached. I think this would also resolve #1187190: HTML special characters get escaped twice.
Comment #2
mikeker CreditAttribution: mikeker commentedSeems fair. Committed.
Comment #4
cmonnow CreditAttribution: cmonnow commentedSorry for reopening this issue. Is there a reason filter_xss_admin() was reverted back to check_plain()?OK, it turns out it's my fault. The recent patch I suggested for theming checkboxes (https://www.drupal.org/node/1404656) was copy-pasted from an old patch. Need to make this change again (and check if I've reintroduced old issues elsewhere).
Comment #5
cmonnow CreditAttribution: cmonnow commentedComment #6
Les LimReverting status.