embed videos like a damn pro!

This commit is contained in:
russell@unturf. 2025-06-20 17:13:32 -04:00
parent 8011649abc
commit 648df5a0b2

View file

@ -67,11 +67,11 @@ const VALID_VOICES = ['alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'];
// Configuration for DOMPurify to specify which tags and attributes are allowed
const dompurify_config = {
ADD_TAGS: ["iframe", "img"],
ADD_TAGS: ["iframe", "img", "video"],
FORBID_TAGS: ["form"],
ALLOWED_ATTR: [
"src", "width", "height", "frameborder", "allowfullscreen",
"alt", "class", "title", "style"
"alt", "class", "title", "style", "controls",
]
};