Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Document doc = Jsoup.parse(htmlFile, StandardCharsets.UTF_8.name());
  2. Elements els = doc.select("script");
  3. for(Element element: else) {
  4. element.text("Text that should not be escaped. eq '&'");
  5. }
  6.  
  7. import org.jsoup.nodes.DataNode;
  8.  
  9.  
  10. element.empty()
  11. element.appendChild(new DataNode("Text that should not be escaped. eq '&'"))
Add Comment
Please, Sign In to add comment