i did some research and this is finally what i came up with:
<%
function cleanString(string_clean)
string_clean = Trim(string_clean)
string_clean = Server.HTMLEncode(string_clean)
string_clean = Replace(string_clean, chr(13), "<br />")
cleanString = string_clean
End Function
' If you are using get function use:
' Response.Write(cleanString(Request.QueryString("message")))
Response.Write(cleanString(Request.Form("message")))
%>
it works like a.. perfect script
Note: "message" is the name of the string i was getting form a form to process. You can see my progress at
http://chronicyouth.com/news/?id=1