How to use htmlspecialchars_decode in PHP
I am a inserting a content in FCKEDITOR.
EXAMPLE Content : TEST ~!@#$%^&*()_+| TEST
But i get the output like this: TEST ~!@')
What should i do to get the exact output?
开发者_StackOverflowI am using ajax to do this.
Thanks.
Fero
htmlspecialchars_decode is used to convert html encoded characters back to regular characters:
& -> &
-> 'space'
" -> "
You have no html encoded characters in the string you posted.
If you print the exact SQL statement you send to the DB, what do you see?
Is the field in the database long enough? Do strings always get cut of at the same length?
精彩评论