or download this
m|^\s*<[^/>]+>(.+)</| and $_=$1; # Zap tags on both sides, if any
# The line above looks for text enclosed in html tokens, and extract
+s the text.
...
# The line above handles left-over single tags:
# Eg: it zaps "<sometag/>" from "text1 <sometag/> text2"
# Actually, it is rather crude, and does not care about tag terminat
+ion, or matching.