# Account for differences in browser returns
# Replace \r\n, \r, or \n with
$lf = chr(10);
$cr = chr(13);
$phrases =~ s/$lf/
/g;
$phrases =~ s/$cr/
/g;
# In case you were on Windows and not UNIX nor MAC,
# now have two
's rather than one
$phrases =~ s/
/
/g;
# Show $html_phrases in text box of browser
$html_phrases = $phrases;
# Fix $phrases for storage in UNIX file
$phrases =~ s/
/\\n/g;