Is PHP subbing post char entities? If so, how to stop?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Mick Pearson
Forum Newbie
Posts: 2
Joined: Thu Jan 22, 2009 12:55 pm

Is PHP subbing post char entities? If so, how to stop?

Post by Mick Pearson »

I'm sending post data via a <textarea> element in a form. If I send say " I'd like to receive " and not ". Is PHP responsible for this? And if so how can this behavior be prevented please?

Thanks!
Mick Pearson
Forum Newbie
Posts: 2
Joined: Thu Jan 22, 2009 12:55 pm

Re: Is PHP subbing post char entities? If so, how to stop?

Post by Mick Pearson »

Ok. turns out what threw me for a loop was at some point the text inside <textarea> tags is automatically converted into character entities in the document, then presumably unconverted before sent. So to undo this I converted it manually in advance (double converting the stuff I wanted to keep)

Very handy if you ever wanna simulate a command line for your host 8)
Post Reply