Created
December 17, 2014 23:26
-
-
Save MartinIngesen/1427b74f23b9a8117532 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 HTMLTagRemover{ | |
public static void main(String []args){ | |
String html = "<p>Hello <br> World!</p> <a href='google.com'>website</a>"; | |
System.out.println(html.replaceAll("<([^>]+)>", "")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment