Page 1 of 1
Is PHP subbing post char entities? If so, how to stop?
Posted: Thu Jan 22, 2009 1:01 pm
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!
Re: Is PHP subbing post char entities? If so, how to stop?
Posted: Fri Jan 23, 2009 11:19 pm
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
