I have a form in asp that checks some javascript errors, shows a preview of the form information before the user submits it to our database. To enable formatting of light before a view, we replace all line breaks with tags.
<textarea name="DATA_Description" ROWS=30 wrap=on cols="30"><%=DATA_Description%></textarea>
Replacing a line break with
<%=replace(DATA_Description,vbcr,"<BR>")%>
This works great in all browsers except Chrome. Chrome adds an extra line break at the end of each line in the text box. We use text in several width areas with several font styles, so I need line breaks to occur only when the user actually entered a hard return ...
Any suggestions?
source share