I've written a short function to replace characters in a string called from a database, but it doesn't seem to work... I usea similar function, written in the same way, and that does work, so I'm really confused!
Here's how I call the function:
adminnotes = unstriptext(RS("adminnotes"))
Admin notes currently holds the value 'test'
And here's the function, which is held in a seperate file which is inculded at the top of my page:
if len(note) > 0 then
testnote = Replace(note, "''", "'")
testnote = Replace(testnote, CHR(13), "<BR>")
Thanks in advance for your help.