ASP : VbScript – Escape Single and Double Quotes

FUNCTION PreSubmit(p_sTargetString)
PreSubmit = REPLACE(p_sTargetString,”textarea”,””)
PreSubmit = REPLACE(PreSubmit,”%”,”%”)
PreSubmit = REPLACE(PreSubmit,”‘”,”’”)
PreSubmit = REPLACE(PreSubmit,””””,”””)
PreSubmit = Trim(PreSubmit)
END FUNCTION

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: