• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

display text from textarea

Explorer ,
Apr 03, 2012 Apr 03, 2012

Copy link to clipboard

Copied

Hi,

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.

Thanks

TOPICS
Getting started

Views

569

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 03, 2012 Apr 03, 2012

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation