In what context are you asking this/what do you want to use it for? If
you for example want to use it for a DB query, you should solve your
problem using parameterized queries instead. If you want to prevent
malicious input in a web app, you should consider
System.Web.HttpUtility.HtmlEncode().
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.