开发者

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?

开发者_StackOverflow

I 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜