1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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

    Likes Received:
    Best Answers:
    Trophy Points:
    strOutput = Replace(strOutput, Chr(34), ">")
    camjohnson95, May 16, 2011 IP