String s = sw.toString();
s = escapeEspecialCharacter(s);
s = processCSSPath(s, host, "css", "\\(", "\\)", ")", url);
s = processCSSPath(s, host, "css", "\\\"", "\\\"", "\"", url);
Tidy tidy = new Tidy();
tidy.setXHTML(true);
ByteArrayInputStream is = new ByteArrayInputStream(s.getBytes());
ByteArrayOutputStream os = new ByteArrayOutputStream();
tidy.parse(is, os);
s = os.toString();
is = new ByteArrayInputStream(s.getBytes());
Document doc = builder.parse(is);