Hello,
My first time posting here. If this isn't the appropriate forum area, please let me know.
I have a webpage that contains a fill-in form. One part of the form is a "textarea" using the <textarea> tags.
When I process the submitted data using &ReadParse in Perl 5.8.0, the carriage returns that a user may have entered are often screwed up.
For instance, if I were to type this message that I'm typing here in my form's textarea, when I then looked at the data that was submitted, it would all be joined as one paragraph instead of multiple paragraphs.
I've tried using a "s/\n/<br>/g" substitution, but that doesn't always work. That's another weird thing: in some situations, the formatting seems to be preserved, but not always.
Is there a simple way to retain the formatting of text that is input by a user?
My first time posting here. If this isn't the appropriate forum area, please let me know.
I have a webpage that contains a fill-in form. One part of the form is a "textarea" using the <textarea> tags.
When I process the submitted data using &ReadParse in Perl 5.8.0, the carriage returns that a user may have entered are often screwed up.
For instance, if I were to type this message that I'm typing here in my form's textarea, when I then looked at the data that was submitted, it would all be joined as one paragraph instead of multiple paragraphs.
I've tried using a "s/\n/<br>/g" substitution, but that doesn't always work. That's another weird thing: in some situations, the formatting seems to be preserved, but not always.
Is there a simple way to retain the formatting of text that is input by a user?