Results 1 to 3 of 3

Thread: Parse TEXTAREA to HTML

  1. #1
    Grant Williamson Guest

    Default Parse TEXTAREA to HTML

    Does anyone have any tips on how I could take the input from a &#060;TEXTAREA&#062; form element and parse it sothe line-feeds within the text area are converted to <BR> HTML tags?

  2. #2
    Join Date
    Dec 1969

    Default RE: Parse TEXTAREA to HTML

    Search for carraige returns (vbCrLf) and replace them with the BR tag.<BR><BR>Dim strTextAreaText<BR>strTextAreaText = Request("TextAreaFormField")<BR><BR>strTextAreaTex t = Replace(strTextAreaText, vbCrLf, "&lt;BR&gt;")<BR><BR>

  3. #3
    Simhan Guest

    Default RE: Parse TEXTAREA to HTML

    Use this<BR><BR>str = replace(Request.Form("textareaname"),vbcrlf,"<BR>" )<BR><BR>Thanks<BR><BR>-- Simhan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts