Re: Stings - textareas in Perl...
nobull_at_mail.com
Date: 03/28/05
- Next message: Scott Bryce: "Re: Stings - textareas in Perl..."
- Previous message: joesplink: "Re: Stings - textareas in Perl..."
- In reply to: joesplink: "Re: Stings - textareas in Perl..."
- Next in thread: Scott Bryce: "Re: Stings - textareas in Perl..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Mar 2005 20:14:36 -0800
Without any context joesplink wrote:
> I'll try to be less vague.
Please give context (quoted material) in your follow-up posts.
Also try to partition your problem - work out what is the question that
you are asking, and what is just the context in which the question
arrose.
> My PERL script gets input from a TEXTAREA
> that contains newlines. I can replace /\n/#/g and print the result
and
> see the #'s where I expect them. However, if I print the string (not
> replacing the \n's) by including it in an HTML document I send to the
> browser, it prints as a single line. How can I get it to print
showing
> the newlines as originally entered in the TEXTAREA???
It would appear that the question you are asking is how to represent a
newline in HTML.
This has nothing to do with Perl - it is a pure HTML question.
The representation of newline in HTML is <br>.
Note also that the '<' and '&' must also be represented specially in
HTML so convert your string with escapeHTML before you s/\n/<br>/.
- Next message: Scott Bryce: "Re: Stings - textareas in Perl..."
- Previous message: joesplink: "Re: Stings - textareas in Perl..."
- In reply to: joesplink: "Re: Stings - textareas in Perl..."
- Next in thread: Scott Bryce: "Re: Stings - textareas in Perl..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|