Skip navigation
Currently Being Moderated

display text from textarea

Apr 3, 2012 8:33 AM



I have the textarea field where user enters any format in.  Sometime they copy text from MS and pasted into it with paragraph or tab to center, ect.  I now ouput this field but the user's inout is not accurately rendered.  All carriage returns page, tabs are lost. I've tried #paragraphFormat(desc)# but it only displayed in paragraph format .  i used pre tag with all wrap attributes but it didn't wrap the text.  Can anyone helps?


for example: if i entered this format into the text area box:

                         Hello world

this is tetsing one


this is testing two


I want it to be displayed as it on the page.



  • Currently Being Moderated
    Apr 3, 2012 8:35 AM   in reply to kt03

    Pasting from Word will mean a lot of Word "junk" will go along with the text which impacts its display when viewed on a web page. You're probably better off using a text editor that includes a text formatting toolbar so the user can style the text directly on the form using valid HTML that will give predictable results.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points