-
I need to display some text from a database field on my web page, but i've noticed that any line breaks etc. are lost. I thought about putting the text into a text area as this seems to maintain the correct formatting but i don't like the way it looks on the page. Is there a way to somehow convert the line breaks in the text into valid HTML or something ?
Thanks
Ian.
-
Before displaying the text, you can replace all vbCrLf with <BR>:
Code:
<%
Dim strText
strText = Replace(RS.Fields("YourFieldName"), vbCrLf, "<BR>"
Response.Write strText
%>