[U]I had vailed to catch the place where I assigned the original POST. Special chars don’t show after they’re posted again, but at least it works.
I’m trying to provide a very light editor… Goal is that someone can type in some html and then preview it in a div lower in the page. I.e. generate a short letter to be sent in html email.
The text area seems to barf on some special characters. I.e. , etc. Other’s, it leaves alone. The div ends up with non-ascii characters in it as well.
I’ve tried various combinations of PHP’s stripslashes/htmlentities, etc. (testing on php 4 where magic_quotes is on) but always end up with one weird result or another. Either the textarea editing window looses the special chars, or the preview window ends up with lots of little diamonds with question marks in the middle of them (some kind of character interpretation).
So is there a clean way to collect html in a textarea and the display it in a div after a POST?
Getting frustrated….
Thanks for any help/insight you can provide.