|
|
@@ -387,6 +387,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (!match || match[1] != this.baseURI) {
|
|
|
element.setAttribute("href", href);
|
|
|
}
|
|
|
+ if (this.options.removeScripts && href.match(/^\s*javascript:/)) {
|
|
|
+ element.removeAttribute("href");
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}
|