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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fengtan created an issue. See original summary.

Daluxz’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch!
Works for me.