I have the following Java code:
str = str.replaceAll(\"<.*?>.*?|<.*?/>\", \"\");
This turns a String like so:
You were almost there ;)
Try this:
str = str.replaceAll("<.*?>", "")