How to put text to Element
object without escaping?
Document doc = Jsoup.parse(htmlFile, StandardCharsets.UTF_8.name());
Elements els = doc.select("script");
for(Element element: els) {
element.text("Text that should not be escaped. eq '&'");
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…