Jump to content

The same content after pressing the button


Recommended Posts

Guest __Chris
Hello!
I have maybe a common, maybe not problem.

Let's say:
I want to create a script, that will display the content I have written in textarea form field. Of course with 0-9a-z and white chars there is no problem with it. Simply stripslashes(), htmlspecialchars() and nl2br(). But... If I want to store such a content: "« [AND]laquo; [AND]#171;" ([AND] = &).

After I pressed the button I want to see it in the same outlook I have written. But in this case I can't. This special string - "«" is automatically converted to: [AND]#171; so how to distinguish what was a real special character and what was a character reference?

If you don't understand what I mean click reply, put this content "« [AND]laquo; [AND]#171;" in textarea form field, and what you get after all.

I will be extreamly greatful to someone who tell me the solution of this problem.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.