0

Some of my values coming back in my recordset have a ' in them. This data is being read into a JS array so I need to change the ' in the result to the ' html hex code.

2
Contributors
2
Replies
5
Views
3 Years
Discussion Span
Last Post by MaddTechwf
0

Ok, so sounds you need to HTML encode the string in the record set...

Try using Server.HTMLEncode(yourString)

Not sure if this will work for the apostrophe.

If that doesnt work for you, I would try using the Replace method:

variableName = Replace(variableName, "'", "'")

Edited by JorgeM

0

I found the REPLACE function after I asked this question. Sorry, got it working now.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.