Show url attibuts in twig
I have do a preprocess function in my file ".module" like this

/**
 * Implements hook_preprocess_page()
 */
function MYTHEME_preprocess_page(&amp;$vars) {
  $vars['get']['date'] = \Drupal\Component\Utility\XSS::filter($_GET['date']);
}


but not sure that correct