not evaluate html from sql?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bouy78@yahoo.com

    not evaluate html from sql?

    quick question..I have some html in an mssql db and i want to
    response.write it without the tags being evaluated....?? ??

  • Mike Brind

    #2
    Re: not evaluate html from sql?


    bouy78@yahoo.co m wrote:
    quick question..I have some html in an mssql db and i want to
    response.write it without the tags being evaluated....?? ??
    output = Replace(output, "<","&lt;")
    output = Replace(output, ">","&gt;")
    Response.Write output

    The second replace operation probably isn't strictly necessary.....

    --
    Mike Brind

    Comment

    • Bob Barrows [MVP]

      #3
      Re: not evaluate html from sql?

      bouy78@yahoo.co m wrote:
      quick question..I have some html in an mssql db and i want to
      response.write it without the tags being evaluated....?? ??
      response.write server.htmlenco de(yourtext)
      --
      Microsoft MVP -- ASP/ASP.NET
      Please reply to the newsgroup. The email account listed in my From
      header is my spam trap, so I don't check it very often. You will get a
      quicker response by posting to the newsgroup.


      Comment

      • bouy78@yahoo.com

        #4
        Re: not evaluate html from sql?


        Bob Barrows [MVP] wrote:
        bouy78@yahoo.co m wrote:
        quick question..I have some html in an mssql db and i want to
        response.write it without the tags being evaluated....?? ??
        response.write server.htmlenco de(yourtext)
        --
        Microsoft MVP -- ASP/ASP.NET
        Please reply to the newsgroup. The email account listed in my From
        header is my spam trap, so I don't check it very often. You will get a
        quicker response by posting to the newsgroup.
        sweet..thanks

        Comment

        Working...