Filter caption for videos

Created on 4 December 2024, 4 months ago

Problem/Motivation

Seems that adding captions for remote videos don't filter the caption as the formatter for images does (with an Xss::filter).

Steps to reproduce

Add a caption to a video with something susceptible of having HTML on it, like a token, the caption will have HTML tags on it.

Proposed resolution

Add a Xss::filter to the caption.

See code in this MR:
https://www.drupal.org/project/glightbox_media_video/issues/3491410 📌 Filter caption for videos Active

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇷🇸Serbia levmyshkin Novi Sad, Serbia

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

Comments & Activities

Production build 0.71.5 2024