Programming Tips - perl: I remove the HTML in a string

Date: 2011jul7 Keywords: defang, sanitize Language: perl Q. perl: 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.