How do I put line breaks into my generated HTML?

Results 1 to 3 of 3

Thread: How do I put line breaks into my generated HTML?

  1. #1
    Jane Fothergill Guest

    Default How do I put line breaks into my generated HTML?

    I&#039m using ASP code to generate all of my web pages, but at the moment if I do a "View Source" on the generated HTML, it just continues off the page. Is there a way to put a line break into the HTML so that a "View Source" is formatted better?<BR><BR>Cheers<BR>Jane

  2. #2
    Ian Stallings Guest

    Default RE: How do I put line breaks into my generated HTML?

    this should work for a carriage return:<BR>&#060;%<BR>varCarriageReturn = chr(10) & chr(13)<BR>writeline (varCarriageReturn)<BR><BR>&#037;&#062;<BR><BR>

  3. #3
    John Harvey Guest

    Default Line breaks in generated HTML

    in VBScript you can also use the constant <BR>vbCrLf to write linefeeds.<BR><BR>Response.write "&#060;tag>text blah blah blah&#060;/tag>" & vbCrLf

Posting Permissions

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