I have a page that uses a textarea to submit a comment. Once submitted the comment is redisplayed in the textarea as well as in a table above it. The problem is this:
The textarea keeps the paragraph formatting but the <TD> in the table does not. Any ideas?
Probably because HTML treats all whitespace as a single "space" so all of the tabs and carriageReturn/LineFeed characters are condensed into one space.
You might get a better answer in the HTML forum: forum215
The line breaks in the text area are carriage returns (vbcrlf) and these do not appear when shown in the HTML. What you need to do is replace the vbcrlf's with <br/>s to keep the formatting in the table cell. e.g.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.