From 648df5a0b2582ad7cea306cefbb2ebd7714e146c Mon Sep 17 00:00:00 2001 From: "russell@unturf." Date: Fri, 20 Jun 2025 17:13:32 -0400 Subject: [PATCH] embed videos like a damn pro! --- templates/chat.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/chat.html b/templates/chat.html index 3ac04a3..b7168bc 100644 --- a/templates/chat.html +++ b/templates/chat.html @@ -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", ] };