Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
If you configure a Onebox module to show up in the Drupal interface, then query terms appearing in the Onebox results seem to get stripped out.
For instance if you search 'foobar' and the Onebox module returns a result titled '<b><i>foobar</i></b> 1234', then Drupal will display ' 1234' in the block.
Proposed resolution
The attached patch is pretty straightforward - we can run the title against filter_xss() to keep the query terms.
Comment | File | Size | Author |
---|---|---|---|
google_appliance-query_terms_stripped_in_onebox_results.patch | 697 bytes | fengtan | |
Comments
Comment #2
Daluxz CreditAttribution: Daluxz at iO commentedThanks for the patch!
Works for me.