Created
May 10, 2015 07:01
-
-
Save JonasCz/20289e774bd2ba2b1a5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JSoupTest { | |
public static void main(String[] args) throws IOException { | |
String myHtml = "<A HREF=\"junklink\">Junk Info</A> Link Id: A2 <A HREF=\"Junk Link></A>"; | |
Document doc = Jsoup.parseBodyFragment(myHtml, "http://your.baseurl"); | |
System.out.println(doc.text()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment