putting preformatted text in mysql
Posted on 2004-10-04
I have a form field that collects an artists biographical information. This then appears on the artists web page. Often the text has certain bolded areas, underlinings, etc.
I would like the user filling out the form to be able to copy and paste there bio info into the form field and retain the formatting when it is stored in the db and output to the artist's page.
However on the artists website page, the artist bio needs to fit into a space about 190 pixels wide.
Basically I would like the text to retain the formatting (any bold text, underlines, line breaks,etc) that the user pastes into the form field and also conform to the width dimension listed above - to keep the look of the artist page consistent.
The less code the better if possible...thanks