diff --git a/modules/markup/sanitizer_default.go b/modules/markup/sanitizer_default.go index 9c7259dc8cc..25a7e1532d1 100644 --- a/modules/markup/sanitizer_default.go +++ b/modules/markup/sanitizer_default.go @@ -54,7 +54,7 @@ func (st *Sanitizer) createDefaultPolicy() *bluemonday.Policy { // Allow 'color' and 'background-color' properties for the style attribute on text elements. policy.AllowStyles("color", "background-color").OnElements("div", "span", "p", "tr", "th", "td") - policy.AllowAttrs("src", "autoplay", "controls").OnElements("video") + policy.AllowAttrs("src", "autoplay", "controls", "muted", "loop", "playsinline").OnElements("video") // Native support of "" // ATTENTION: it only works with "auto" theme, because "media" query doesn't work with the theme chosen by end user manually.