I can't solve your problem but can tell you that the
'decode' method only toggles the use of
HTML::Entities. Look into the 'br_translate' method
which translates <br> to \n to eliminate the strange
concatenation.
Perhaps you could use the information extracted from the
table to reparse the file for links and such.