Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Text Data into Paragraphs

Status
Not open for further replies.

Javamahn

Technical User
Mar 14, 2001
143
US
I am in the process of writing a News page. The page uses text data from a mySQL text field. Users input the news story via a VBSCRIPT page. The body of the story is inputted using a text area. Is there a way to format the output to mimic the users input text?

I would like to avoid user having to use special characters to designate Carriage Returns & Line Feeds. How can I get all of that information from the Users Input into the database and then back out to the display page?
 
I found my answer. All I had to do was look a little deeper in this forum. Replace() seems to be the answer
 
New glitch,
How do I format new paragraph indents?
 
Replace again, you can do a replace on Chr(9) (tab) with whatever you would like to use to indent. Common methods include use non-breaking spaces ( ), Empty divs with CSS width's, etc, anything to indent the one line.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top