Closed (fixed)
Project:
PhotoSwipe - Responsive JavaScript Modal Image Gallery
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2026 at 20:33 UTC
Updated:
29 Sep 2026 at 13:55 UTC
Jump to comment: Most recent
Comments
Comment #3
joewhitsittLooks like an unrelated test failure
Comment #5
joewhitsittGiven the recent security release, this needs a new approach. https://www.drupal.org/sa-contrib-2026-131
Previously html formatted values were displayed as plain text without the html markup. With the 5.0.9 release raw HTML output is now displayed.
Comment #6
ressaI am also seeing this in captions after applying the security update, the tags are output with HTML entities:
Maybe the Status should be bumped up, since this blocks rolling out the security update?
Comment #7
anybodyThanks @ressa we'll check that. Is this issue reproducible in a vanilla installation or did you override any template or something?
Anything else we should know?
Comment #8
ressaThanks for a fast response @anybody, as always. I have reproduced it in a fresh Drupal 11 installation, both for a single node, and in a View. Let me know if you need more information.
Preparation
Node
composer require drupal/photoswipeView
Comment #9
grevil commentedAs the captions submodule is an integral part of the photoswipe module, I'll bump this up to major.
Comment #10
grevil commentedComment #11
grevil commentedComment #13
grevil commentedAlright, this does the trick.
Please review!
Comment #14
grevil commentedComment #15
grevil commentedA few unrelated issues also fixed with internal agreement by @anybody.
Should be all! Please review!
Comment #16
grevil commentedAlso allowed to pass and alter cache tags by other modules, so that programmatically changing the setting will also lead the js to "refresh". We did that previously through manually invalidating cache tags in the submit form, But this is not needed anymore.
Comment #17
anybodyPerfect, thank you!
Comment #18
anybodyLet's merge this and tag a release so people have a working solution.
Comment #20
grevil commentedComment #22
joewhitsittThanks for the quick pivot! Looking forward to testing and getting out there.
Comment #23
ressaThanks @grevil and @anybody for building and releasing a perfect solution so fast, very impressive! It works like a charm.
If I may suggest a single improvement, it would be to tweak the last sentence under Manual installation:
... to something like this?
Comment #24
ressaAnother detail, which puzzled me yesterday: I enabled "Allow HTML captions" and visited the Status Report page, where all other missing libraries are usually reported, but saw nothing, and concluded there was no check ...
So today I was about to create an issue, but double checked the MR, and realised there is actually a check, nice! But it is shown on the Settings page.
So perhaps the display can be moved to the Status report page, so it is shown there? I created an issue.
Also, should the setting have been under
options, like the other ones?I.e. it should have been indented in photoswipe_dynamic_caption.schema.yml, like this:
Comment #25
anybody@ressa thank you very muc for your positive words and feedback.
I agree with you in all points but one: I don't think we should move the settings, because the other options are direct Photoswipe Captions options, while this one is Drupal-specific. So let's keep it like this.
Could you please open a follow-up for the things you suggested and prepare a MR for these please?
Regarding the status report, I'm fine with the addition, but please also keep the check on the settings page, because this is where it gets enabled and where people should get immediate feedback.
ONLY show an additional message the status report, IF the option is enabled! Otherwise, neither a positive nor a negative message should appear to not confuse people, who don't use this specific setting. And please put it into the captions submodule.
Thank you very much once again, very helpful feedback! :)
Comment #26
ressaYou're welcome, it's always a joy to participate in issues where Drowl is involved.
Thanks for clarifying the distinction between Photoswipe- and Drupal-related settings, and in that case it makes sense to keep them separated.
I actually did create an MR yesterday (#3620978: Show warning on Status report page if DOMPurify file is missing), but only added it as a related issue in my comment, where I should have made this clearer, my bad. As the warning on the settings page, it is only triggered if the "Allow HTML captions" is enabled AND the DOMpurify script is missing.
I was in doubt yesterday about removing the warning on the Settings page ("DRY Principle"), but decided to do so, though I was not 100% sure about it ... So I do agree that it could also be kept, so I updated the MR, and it is no longer removed.
Comment #27
anybodyThank you @ressa! We'll review the follow-up. :)
Comment #28
grevil commentedNot entirely true, we never introduced validation. Meaning the user won't get "immediate feedback" when enabling the setting. Only when revisiting the site.