Issue #3255895 by jrb, murilohp, harshitthakore, xjm: HTML entities in Tour tip labels get double-escaped
parent
9411d5f6dc
commit
18c67bfffd
|
@ -43,7 +43,7 @@ class TourViewBuilder extends EntityViewBuilder {
|
|||
$body = (string) \Drupal::service('renderer')->renderPlain($body_render_array);
|
||||
$output = [
|
||||
'body' => $body,
|
||||
'title' => Html::escape($tip->getLabel()),
|
||||
'title' => $tip->getLabel(),
|
||||
];
|
||||
|
||||
$selector = $tip->getSelector();
|
||||
|
|
|
@ -158,7 +158,7 @@ class TourTest extends TourTestBasic {
|
|||
'tour-test-1' => [
|
||||
'id' => 'tour-code-test-1',
|
||||
'plugin' => 'text',
|
||||
'label' => 'The rain in spain',
|
||||
'label' => 'The rain in spain is <strong>strong</strong>',
|
||||
'body' => 'Falls mostly on the plain.',
|
||||
'weight' => '100',
|
||||
'selector' => '#tour-code-test-1',
|
||||
|
@ -194,7 +194,7 @@ class TourTest extends TourTestBasic {
|
|||
|
||||
$elements = $this->findTip([
|
||||
'id' => 'tour-code-test-1',
|
||||
'title' => 'The rain in spain',
|
||||
'title' => 'The rain in spain is <strong>strong</strong>',
|
||||
]);
|
||||
$this->assertCount(1, $elements, 'Found the required tip markup for tip 4');
|
||||
|
||||
|
|
Loading…
Reference in New Issue