Commit 1ec3719f authored by julien's avatar julien

update to code

parent 50feccd6
Pipeline #425 passed with stage
in 3 minutes and 17 seconds
......@@ -2,20 +2,14 @@ import Handler from "../handler";
import csstree from "css-tree";
class removeNode extends Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
}
beforeParsed(content) {
// remove all script elements
content.querySelectorAll("script").forEach( script => { script.remove(); })
}
layoutNode(node) {
if(node.tagName === "script") {
node.remove();
}
}
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
}
beforeParsed(content) {
// remove all script elements
content.querySelectorAll("script").forEach( script => { script.remove(); });
}
}
export default removeNode;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment