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

Cold Fusion and HTML

New Here ,
Sep 25, 2008 Sep 25, 2008

Copy link to clipboard

Copied

There is a form which accepts user data. There is a textarea included in the form. The problem is when i display that information in a html form it doesnot display the text in the format in which it is entered in the textarea example linebreaks, newlines etc.


I am facing the same problem sending this text throuh <cfmail>. it also does not display special characters.


how can i resolve this issue?
TOPICS
Advanced techniques

Views

546

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
LEGEND ,
Sep 25, 2008 Sep 25, 2008

Copy link to clipboard

Copied

To display line breaks in html, replace chr(10) & chr(13) with <br>

For mail, if you send as plain text, you don't have to do anything.

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
LEGEND ,
Sep 25, 2008 Sep 25, 2008

Copy link to clipboard

Copied

Dan Bracuk wrote:
> To display line breaks in html, replace chr(10) & chr(13) with <br>

Or output the form data inside of html <pre>...</pre> tag that do
understand carriage returns and line breaks aka chr(10) & chr(13)

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
New Here ,
Sep 26, 2008 Sep 26, 2008

Copy link to clipboard

Copied

i used <pre></pre>. it worked fine but now what should i do if i want to wrap the text also. since usage of <pre> has destorted my pages.

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
Advocate ,
Sep 26, 2008 Sep 26, 2008

Copy link to clipboard

Copied

LATEST
Hi,

Try the ParagraphFormat function.

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