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

Perserve White Space or Auto Convert to HTML

LEGEND ,
Oct 27, 2006 Oct 27, 2006

Copy link to clipboard

Copied

I have textareas that allow people to post thoughts or opinions. I would
like it to display preserving returns and white space. Where can I find info
on how to do this in the output. I was able to do this using an extension
for ASP.

Also, is there a way to have the output auto create hyperlinks when someone
enters an email address or a www / http?

Thanks

--
Wally Kolcz
Developer / Support


TOPICS
Advanced techniques

Views

256

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 ,
Oct 27, 2006 Oct 27, 2006

Copy link to clipboard

Copied

Store what you get. When you display it, use the replace functions to convert all your char(10)s to <br />s.

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 ,
Oct 27, 2006 Oct 27, 2006

Copy link to clipboard

Copied

LATEST
For the white space, put the content into <pre></pre> or <code></code>
tags and|or use CSS to not have the output collapse the whitespace.

For changing links that would require a bit of regex or some other kind
of string processing. Not to difficult, but I don't have the exact code.

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