Java HTML Jsoup Element stripAttribute(Element body, String attribute)

Here you can find the source of stripAttribute(Element body, String attribute)

Description

strip Attribute

License

Open Source License

Declaration

private static void stripAttribute(Element body, String attribute) 

Method Source Code

//package com.java2s;

import org.jsoup.nodes.Element;

import org.jsoup.select.Elements;

public class Main {
    private static void stripAttribute(Element body, String attribute) {
        Elements elements = body.getElementsByAttribute(attribute);
        for (Element e : elements) {
            e.removeAttr(attribute);//from   ww w .  j a v  a2 s .co  m
        }
    }
}

Related

  1. processCheck(Element ele, Element parent, String dict)
  2. randomElement()
  3. replaceHtml(Node element)
  4. sameTagElNums(Element e)
  5. setAttribute(Element e, String key, String value)
  6. stripEmptyDivs(Element body)
  7. stripStyles(Element body)
  8. updateData(Element element, String data)