if (name.equals("img")) { String source = element.getAttribute("src");  if (! isRelative(source)) { return false; }  element.removeAttribute("longdesc"); element.removeAttribute("usemap"); element.removeAttribute("ismap"); }
    private boolean isThustedNode(Node child) {        if (child.getNodeType() != Node.ELEMENT_NODE && child.getNodeType() != Node.TEXT_NODE) {            return false;        }        if (child.getNodeType() == Node.TEXT_NODE) {            return true;        }        List<String> forbiddenElements = Arrays.asList(new String[] { "script", "iframe", "img",                "element", "object", "applet", "form", "frame", "frameset", "link", "style" });        Element element = (Element) child;        if (forbiddenElements.contains(element.getNodeName().toLowerCase())) {            return false;        }        return true;    }