ep_embedmedia
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "ep_embedmedia", | ||
"description": "Embed media (youtube, vimeo etc)", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "RedHog (Egil Moeller) <egil.moller@freecode.no>", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
@@ -59,2 +59,7 @@ exports.aceInitInnerdocbodyHead = function(hook_name, args, cb) { | ||
exports.sanitize = function (inputHtml) { | ||
// Monkeypatch the sanitizer a bit, adding support for embed tags and fixing broken param tags | ||
html4.ELEMENTS.embed = html4.eflags.UNSAFE; | ||
html4.ELEMENTS.param = html4.eflags.UNSAFE; // NOT empty or we break stuff in some browsers... | ||
return html.sanitizeWithPolicy(inputHtml, function(tagName, attribs) { | ||
@@ -61,0 +66,0 @@ if ($.inArray(tagName, ["embed", "object", "iframe", "param"]) == -1) { |
63366
1265