special chars escaping on title fixe
This commit is contained in:
@@ -91,7 +91,7 @@ function leshed_preprocess_page_title(&$variables) {
|
||||
$base_url = \Drupal\Core\Url::fromUserInput($base_paths[$route_name]);
|
||||
|
||||
$variables['title'] = [
|
||||
'#markup' => '<a href="' . $base_url->toString() . '">' . \Drupal\Component\Utility\Html::escape($base_title) . '</a> | ' . \Drupal\Component\Utility\Html::escape($term_part),
|
||||
'#markup' => '<a href="' . $base_url->toString() . '">' . \Drupal\Component\Utility\Html::escape(\Drupal\Component\Utility\Html::decodeEntities($base_title)) . '</a> | ' . \Drupal\Component\Utility\Html::escape(\Drupal\Component\Utility\Html::decodeEntities($term_part)),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user