Problem/Motivation
HTML tags in captions got fixed in #3574103: Allow limited HTML in captions through domPurify, move caption README in main module and fix tests using the DOMPurify library and it works well.
But there was a detail, which puzzled me: I enabled "Allow HTML captions" without the script file in place, and visited the Status report page immediately after, where missing PhotoSwipe libraries are usually reported, but saw no error about missing DOMPurify file, and thought there was no check ...
So today I was about to create an issue, but read the MR, and realised there is actually a check, nice! But it is only shown on the Settings page, /admin/config/media/photoswipe_dynamic_caption.
Steps to reproduce
Proposed resolution
Perhaps the warning about missing DOMPurify library file error can be also shown on the Status report page, alongside the other Photoswipe missing library errors?
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork photoswipe-3620978
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ressaComment #4
ressaLet's keep the warning on the settings page, per feedback in #3574103-25: Allow limited HTML in captions through domPurify, move caption README in main module and fix tests :)
Comment #6
anybodyThanks @ressa - I made a little text alignment and think this is ready to be merged :)
Comment #7
anybodyPS: Would you maybe like to finish #3620906: Fix code style issues so we have everything green again, @ressa? Just if you'd like to...
Comment #8
ressaThank you @anybody! And nice with the improvements. I took a stab at fixing some of the coding standards errors.
Comment #9
anybodyThank YOU ressa! :)