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().
 

Ask a Question

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.

Ask a Question

Similar Threads

PHP poll 5
.NET/C# versus PHP 124
newbee memory question 6
c# and php conversion 2
PHP versus ASP.net 3
emulate PHP "crypt" function in c#? 5
[C#] Unmanaged DLL and Marshalling 0
Convert PHP pack() function to C# 4

Back
Top