Escaping a " in Classic ASP?

Discussion in 'C#' started by jimmykup, May 6, 2011.

  1. #1
    Hi everyone,

    I'm trying to search for a single instance of a " in my text, and then replace it with it's HTML entity code. For example, I want 17.8" Inches to become 17.8> Inches in my source code. Here's the code I'm using below.

    strOutput = Replace(strOutput, """, ">")

    Unfortunately, this doesn't work because searching for a " within the two " " just doesn't work. Is there a workaround for this? Any help would be greatly appreciated!
     
    jimmykup, May 6, 2011 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    strOutput = Replace(strOutput, Chr(34), ">")
     
    camjohnson95, May 16, 2011 IP