Skip to content

Commit

Permalink
Security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocr committed Mar 27, 2014
1 parent eff3bdc commit 6265677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jspdf.plugin.from_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
$hiddendiv = $("<div style=\"" + visuallyhidden + "\">" + "<iframe style=\"height:1px;width:1px\" name=\"" + framename + "\" />" + "</div>").appendTo(document.body);
$frame = window.frames[framename];
return $($frame.document.body).html(element)[0];
})(element);
})(element.replace(/<\/?script[^>]*?>/gi,''));
}
var r = new Renderer(pdf, x, y, settings);
loadImgs.call(this, element, r, settings.elementHandlers, callback);
Expand Down

0 comments on commit 6265677

Please sign in to comment.