Colorbox not recognizing the DOMPurify Library

Created on 17 February 2023, almost 2 years ago

Per the request of @paulmckibben, I am opening this as a separate issue from the previously opened issue of the same nature for the Drupal 7 version.

I am running Drupal 9.5.3
I have the library installed in

/libraries/DOMPurify/dist

with the file purify.min.js at this location, as per instructions. I have checked and double-checked this. This is NOT the capitalization issue mentioned in other issues, as you'll note by the above path. However I still receive a warning in my STATUS REPORT which states:

DOMPurify library
Not installed
The DOMPurify library is not installed. The Colorbox module uses this library to sanitize HTML captions. Without this library, all captions will be treated as plain text. If you intend to have HTML captions in Colorbox content, download the DOMPurify library, extract it, and copy the dist directory into the /libraries/DOMPurify folder in your Drupal installation directory. Specifically, the system looks for /libraries/DOMPurify/dist/purify.min.js.

To avoid potential security issues, please only install the dist directory, and not any other files from the archive.

If you do not intend to use HTML captions, you can suppress this warning on the Colorbox configuration page.

Everything is as is stated it should be, but the warning persists.

Please advise.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BEGRAFX Laconia, New Hampshire

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024