in reply to Extract text from HTML
# THIS IS BAD s/(\s|\ )+/ /g; s/<(BR|P)>/\n/ig; s/<.+?>//g; [download]
use HTML::TokeParser; [download]