[thelist] Textarea - HTML - line breaks

Roee Rubin webdesign1 at irubin.com
Thu Nov 29 17:18:45 CST 2001


I assume that the line break I would search and replace would be the usual
\n ??

Thanks.

Roee

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Ray Hill
Sent: Thursday, November 29, 2001 2:39 PM
To: thelist at lists.evolt.org
Subject: RE: [thelist] Textarea - HTML - line breaks


Ebay has he same problem, which is why so many of the auction posts
are so hard to read.  What you need to do, either when you're
submitting the info to the database or wen you're printing it to the
page, is do a search/replace to put a <br> wherever the user has
entered a carriage return.  That way the HTML output will behave
correctly.

In the case of eBay and similar sites, where automatically doing this
would ruin HTML content entry, I've always throught that the text area
should have a "Plain Text / HTML" radio button above it, so that it
inserts the <br> tag only for people who are entering plain text, and
leaves the input alone for those entering HTML.

Now if only we could get someone at eBay to implement that, maybe all
those new holiday auctions would be a bit more legible.  :)

--ray


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list