keeping line breaks/formatting

Results 1 to 2 of 2

Thread: keeping line breaks/formatting

  1. #1
    martin Guest

    Default keeping line breaks/formatting

    a perfect example of what i want to do is in this messageboard. How do I code the form action and request syntax so i will keep the formatting?<BR><BR><BR>eg, so this text will actually appear 2 line breaks behind.

  2. #2
    Join Date
    Dec 1969

    Default RE: keeping line breaks/formatting

    Hope this helps:<BR><BR>&#039 Replace line-feeds in an HTML string with <BR>&#039s, and tabs with a few spaces.<BR>function MultiLinifyHtml(str)<BR> MultiLinifyHtml = Replace(str, vbCrLf, "<BR>")<BR> MultiLinifyHtml = Replace(str, vbCr, "<BR>")<BR> MultiLinifyHtml = Replace(str, vbLf, "<BR>")<BR> MultiLinifyHtml = Replace(MultiLinifyHtml, vbTab, "&nbsp;&nbsp;&nbsp;&nbsp;")<BR>end function<BR><BR>Use this after Server.HtmlEncode&#039ing the raw text.<BR>

Posting Permissions

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