Java HTML Jsoup Element stripStyles(Element body)

Here you can find the source of stripStyles(Element body)

Description

strip Styles

License

Open Source License

Declaration

private static void stripStyles(Element body) 

Method Source Code

//package com.java2s;

import org.jsoup.nodes.Element;

import org.jsoup.select.Elements;

public class Main {
    private static void stripStyles(Element body) {
        Elements divs = body.select("style");
        divs.empty();//from   w ww.j  av  a2s .c o  m
    }
}

Related

  1. replaceHtml(Node element)
  2. sameTagElNums(Element e)
  3. setAttribute(Element e, String key, String value)
  4. stripAttribute(Element body, String attribute)
  5. stripEmptyDivs(Element body)
  6. updateData(Element element, String data)