Package org.apache.wookie.util.html

Examples of org.apache.wookie.util.html.HtmlSerializer


    properties.setUseEmptyElementTags(false)
  }
 
  private String parse(String content){
    StringWriter writer = new StringWriter();
    HtmlSerializer ser = new HtmlSerializer(properties);
    try {
      TagNode html = cleaner.clean(content);
      ser.writeXml(html, writer, "UTF-8");
      return writer.getBuffer().toString();
    } catch (IOException e) {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.util.html.HtmlSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.