What is the corresponding functions of PHP's addslashes and stripslashes() in .NET

  • Thread starter Thread starter X-Killer
  • Start date Start date
X

X-Killer

Just wondering what is the corresponding function of PHP's addslashes() in
..NET.
Thanks in advance.
 
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().
 
Back
Top