http encode for literals?

Results 1 to 2 of 2

Thread: http encode for literals?

  1. #1
    Join Date
    Dec 1969

    Default http encode for literals?

    I have an xhtml VB site which pulls all content from an MSSQL DB. The issue is the reserved character "&". I&#039;ve used literals to replace vbCrLF with &#060;br /&#062; in the main body field and can set up a similar routine for all fields, replacing "&" with "&-amp;" (sorry for the dash; you get the point), but was wondering if there was a better/shorter route to ensuring xhtml code compliance, perhaps with http:encode?<BR><BR> Any suggestions are appreciated.

  2. #2
    Join Date
    Dec 1969

    Default Server.HTMLEncode

    Converts " to &amp;quot;<BR>Converts &#060; to &amp;lt;<BR>Converts & to &amp;amp;<BR>etc.<BR><BR>Does not convert CR or LF or apostrophe.<BR><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