http://www.perlmonks.org?node_id=667660


in reply to Re^2: HTML::Entities not encoding @ or .
in thread HTML::Entities not encoding @ or .

Yes, if the output from your database ever needs to be anything other than HTML, you'll need to remember to decode it explicitly at that time. The best rule to follow, I've found, is to keep the raw text in the DB, then encode it appropriately at time of output, for the relevant output format in question.