spaces in text ---> html
From: Peter Smith (psmith6_at_SparnBlock.bigpond.net.au)
Date: 12/19/03
- Next message: Michael Capone: "Time out SSL request?"
- Previous message: Brett: "Problem with arrays or possibly HTML::Element"
- Next in thread: Michael Capone: "Re: spaces in text ---> html"
- Reply: Michael Capone: "Re: spaces in text ---> html"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Dec 2003 09:27:34 GMT
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
- Next message: Michael Capone: "Time out SSL request?"
- Previous message: Brett: "Problem with arrays or possibly HTML::Element"
- Next in thread: Michael Capone: "Re: spaces in text ---> html"
- Reply: Michael Capone: "Re: spaces in text ---> html"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|