in reply to Printing quotes out to an html form?
use HTML::Entities; &encode_entities($string) [download]
&decode_entities($string) [download]