-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDSS-1367: Deprecated and updated inclusion of Drupal merge request p…
…atches (#491) * SDSS-1367: Deprecated and updated inclusion of Drupal merge request patches.
- Loading branch information
Showing
11 changed files
with
1,417 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From db20d404dbb02a77cf040f6ea3e93f9c7d71b7fe Mon Sep 17 00:00:00 2001 | ||
From: Mike Decker <[email protected]> | ||
Date: Tue, 3 May 2022 13:22:58 -0700 | ||
Subject: [PATCH] 3278470 Decode entities in custom captions with tokens | ||
|
||
--- | ||
colorbox.theme.inc | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/colorbox.theme.inc b/colorbox.theme.inc | ||
index 70ba8dd..566fb00 100644 | ||
--- a/colorbox.theme.inc | ||
+++ b/colorbox.theme.inc | ||
@@ -5,6 +5,7 @@ | ||
* Colorbox theme functions. | ||
*/ | ||
|
||
+use Drupal\Component\Render\PlainTextOutput; | ||
use Drupal\Component\Utility\Crypt; | ||
use Drupal\Component\Utility\Xss; | ||
use Drupal\file\Entity\File; | ||
@@ -73,6 +74,7 @@ function template_preprocess_colorbox_formatter(&$variables) { | ||
[$entity_type => $entity, 'file' => $item], | ||
['clear' => TRUE] | ||
); | ||
+ $caption = PlainTextOutput::renderFromHtml($caption); | ||
break; | ||
|
||
default: | ||
-- | ||
GitLab | ||
|
Oops, something went wrong.