Commit f8b8f3bc authored by xjm's avatar xjm

Issue #2501819 by leslieg, edysmp, Cottser, joelpittet: Remove SafeMarkup::set...

Issue #2501819 by leslieg, edysmp, Cottser, joelpittet: Remove SafeMarkup::set in search_embedded_form_preprocess_search_result()
parent d5d78095
......@@ -16,5 +16,5 @@
*/
function search_embedded_form_preprocess_search_result(&$variables) {
$form = \Drupal::formBuilder()->getForm('Drupal\search_embedded_form\Form\SearchEmbeddedForm');
$variables['snippet'] = SafeMarkup::set(SafeMarkup::escape($variables['snippet']) . drupal_render($form));
$variables['snippet'] = ['#markup' => SafeMarkup::escape($variables['snippet']), $form];
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment