P
Peter Smith
Hi
I am writing a message board, and the text is entered in a text box and
outputted in HTML. How can I keep the spaces formatting (ie use 's)
in the html output??
I use the standard decode lines:
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
but when I use
$value =~ tr/+/"\ \;"/;
I get repeated &'s instead of spaces. Any help much appreciated..
- Peter
I am writing a message board, and the text is entered in a text box and
outputted in HTML. How can I keep the spaces formatting (ie use 's)
in the html output??
I use the standard decode lines:
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
but when I use
$value =~ tr/+/"\ \;"/;
I get repeated &'s instead of spaces. Any help much appreciated..
- Peter