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.
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!
That page discusses how to write a double quote to the screen. Unfortunately it doesn't work for my case. Here's the code I'm using.
strOutput = Replace(strOutput, "chr(34)", """)
This does not work for me. For whatever reason the ASP fails to find the double quote when it searches for "chr(34)" as that site suggests using. Just seems like "chr(34)" doesn't work for a find and replace because it's looking for "chr(34)" when in it should really just be looking for a " .
Also, trust me, I'd prefer to not work in ASP. Unfortunately that's what I'm stuck with at my job. They're moving to .NET but it's taking a while.