Forum Moderators: open
I have an instance where I am calling a string from a database text field to show content in a mouseover tooltip. It works great as long as there is not a single or double quote in the text.
What is the best way to escape single and double apostrophes?
Code:
<%=strDescription%>
I tried this, but it seems pretty silly and did not work ...
<%=Replace(Replace(strDescription, "'", "\'"), """, "\"")%>