Programming Tips - How can I remove the HTML in a string?

Date: 2011jul7 Language: perl Keywords: defang, sanitize Q. How can I remove the HTML in a string? A. An easy way is to just remove everything inside angle brackets (and the brackets themselves)
$str =~ s/\<[^\>]*\>//g;
I'm sure this isn't perfect but its nice and easy.