Addslashes Stripslashes Escape string
This online Addslahes tool allows quote a string with slashes (Escape String). Stripslashes tool un-quotes a quoted string by removing slashes.
Bookmark:
Addslashes Stripslashes Escape string
This online Addslashes Tool returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).
An example use of addslashes is when you're entering data into a database. For example, to insert the name O'reilly into a database, you will need to escape it. It's highly recommeneded to use DBMS specific escape function, but if the DBMS you're using does't have an escape function and the DBMS uses \ to escape special chars, you can use this function. This would only be to get the data into the database, the extra \ will not be inserted.
Stripslashes tool Un-quotes a quoted string. An example use of stripslashes is when you aren't inserting data into a place (such as a database) that requires escaping. For example, if you're simply outputting data straight from an HTML form.
In computing and telecommunication, an escape character is a single character designated to invoke an alternative interpretation on immediately subsequent characters in a character sequence. The term escape sequence refers to the escape character and the character or characters whose meaning is modified.
Many modern programming languages specify the doublequote character (") as a delimiter for a string literal. The backslash \ escape character provides two ways to include doublequotes inside a string literal, either by modifying the meaning of the doublequote character embedded in the string (\" becomes "), or by modifying the meaning of the three characters that are the hexadecimal value of a doublequote character (\x22 becomes ").
Online Addslashes/Stripslashes Tool Information:
- Purpose of this Tool : Quote string with slashes, Un-quotes a quoted string, Escaped string, Un-Escaped string
- Intended Audience : Webmasters, Programmers, Software Developers
External Resources: