Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about character convert

Status
Not open for further replies.

seahorse123

Programmer
Jul 25, 2005
39
0
0
US
In the form textarea, I entered:
"test"
'test'
\test\
/test/

the script uses funtion "htmlentities(string,ENT_QUOTES)" to convert single/double quote and save it to Microsoft SQL server with the format:
\"test\"
\'test\'
\\test\\
/test/

When I tried to retrieve it back with function "html_entity_decode(string,ENT_QUOTES)" and display again in form textarea, it shows:
\"test\"
\'test\'
\\test\\/test/

how to remove the backslash "\" and display it as the same as input string?

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top