New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ep_embedmedia

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ep_embedmedia - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc